FS#20260 - [initscripts] Add support for NILFS2 to initscripts
Attached to Project:
Arch Linux
Opened by Alex Matviychuk (alexmat) - Thursday, 22 July 2010, 22:35 GMT
Last edited by Tom Gundersen (tomegun) - Friday, 22 April 2011, 18:21 GMT
Opened by Alex Matviychuk (alexmat) - Thursday, 22 July 2010, 22:35 GMT
Last edited by Tom Gundersen (tomegun) - Friday, 22 April 2011, 18:21 GMT
|
Details
Description:
NILFS2 is now in kernel 2.6.24 and rc.sysinit handles NILFS2 mounts transparently for non-root partitions. However, for root partitions the NILFS cleaner daemon fails to start since root is still read only. Additional info: I'm attaching a suggested patch to work around this issue. |
This task depends upon
Closed by Tom Gundersen (tomegun)
Friday, 22 April 2011, 18:21 GMT
Reason for closing: Deferred
Additional comments about closing: This will be solved when /etc/mtab is a symlink to /proc/self/mounts
Friday, 22 April 2011, 18:21 GMT
Reason for closing: Deferred
Additional comments about closing: This will be solved when /etc/mtab is a symlink to /proc/self/mounts
1. We try not to use backticks anymore in scripts, but instead prefer $() syntax.
2. Because we start it manually for the root device, should we also be stopping it in rc.shutdown? The manpage of mount.nilfs2 seems to indicate that if started manually, the GC daemon needs to be stopped manually as well.
2.) SIGTERM on shutdown is enough to bring down the nilfs garbage collector:
man nilfs_cleanerd ->
" SIGTERM
The nilfs_cleanerd will exit cleanly."
if [ -n $nilfs_root_dev ];
should be:
if [ -n "$nilfs_root_dev" ];
(try this on your terminal: [ -n $somevarthatdoesnotexist ] && echo nonzero)
BASH is damn hard to get right :P
Thanks for the help.
This is possible to do even for the root filesystem. See
FS#22523for an two-line patch and an explanation how.Also I'll leave you to assume what I assume, but let me ask a question then:
What is holding this issue up right now? I know this isn't the complete solution to running nilfs as root (you still need to make udev create the /dev/root symlink), but what is blocking this change from being merged?
FS#22523is preferable to the one posted here? (I don't have NILFS to try this out, so I'll rely on your judgement).@Dan: you mentioned that you linked the tasks, I don't see the link, did something change?
FS#22523).