[Pkg-sysvinit-devel] Bug#518463: initscripts: skip live specific file systems

Daniel Baumann daniel at debian.org
Fri Mar 6 11:08:24 UTC 2009


Package: initscripts
Severity: wishlist
Tags: patch
Owner: debian-live at lists.debian.org

Hi,

/etc/init.d/umountfs unmounts both temporary and local filesystems.
however, in case of a live system, trying to unmount /cow, /live* or
/filesystem* will not work and therefore results in an (end-user
confusing) warning, that the respective fs could not have been unmounted
because it's busy.

In the latest version of live-initramfs we do workaround this at runtime
by patching the script. However, it would be nice if this could be
improved and integrated into the umountfs script itself.

Note that the namespace (/live*, /filesystem* etc.) is stable, it is
already part of some excluding/including mechanisms in gnome-vfs and
live-installer. so you don't have to fear that even if you hardcode it,
that you don't need to change it soon again. However, if you would
prefere something with an exclude mechanism by sourcing from another
file that would be only there on live-systems, that's fine too. Please
let me know what you'd prefere.

Anyway, here is what we do currently:

sed -i  -e 's#pioodl $TMPFS_MTPTS)#pioodl $TMPFS_MTPTS | sed -e "s@\\
@\\n@" | grep -v ^/live)#' \
        -e 's#pioodl $REG_MTPTS)#pioodl $REG_MTPTS | sed -e "s@\\ @\\n@"
| grep -v ^/live | grep -v ^/filesystem) /#' \
/etc/init.d/umountfs

in the second replace, we also add '/' so that $REG_MTPTS is never
empty. it would be nice if you can make the whole unmounting of local
filesystems conditional, so that the script doesn't try to do anything
when there's nothing to unmount.

Regards,
Daniel

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann at panthera-systems.net
Internet:       http://people.panthera-systems.net/~daniel-baumann/





More information about the Pkg-sysvinit-devel mailing list