From: Christian Hofstaedtler Date: Mon, 26 Dec 2011 17:27:41 +0000 (+0100) Subject: Make /run work for softupdate X-Git-Tag: v0.17.3~25 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=2203377a037512efaf959d67c5abf800a8cfe6bc Make /run work for softupdate --- diff --git a/etc/grml/fai/config/hooks/updatebase.GRMLBASE b/etc/grml/fai/config/hooks/updatebase.GRMLBASE index 9e0913a..e1633b3 100755 --- a/etc/grml/fai/config/hooks/updatebase.GRMLBASE +++ b/etc/grml/fai/config/hooks/updatebase.GRMLBASE @@ -41,6 +41,11 @@ if [ "$FAI_ACTION" = "softupdate" ] ; then mount --bind /dev $FAI_ROOT/dev || true fi + if [ -d $FAI_ROOT/run ] ; then + mount -t tmpfs tmpfs $FAI_ROOT/run + mkdir $FAI_ROOT/run/lock + fi + mount -t devpts devpts $FAI_ROOT/dev/pts || true # skip the task if we want to build a new ISO only, diff --git a/grml-live b/grml-live index e2719b1..fb4115a 100755 --- a/grml-live +++ b/grml-live @@ -152,6 +152,7 @@ umount_all() { # make sure we don't leave any mounts - FAI doesn't remove them always umount $CHROOT_OUTPUT/proc/sys/fs/binfmt_misc 2>/dev/null || /bin/true umount $CHROOT_OUTPUT/proc 2>/dev/null || /bin/true + umount $CHROOT_OUTPUT/run 2>/dev/null || /bin/true umount $CHROOT_OUTPUT/sys 2>/dev/null || /bin/true umount $CHROOT_OUTPUT/dev/pts 2>/dev/null || /bin/true umount $CHROOT_OUTPUT/dev 2>/dev/null || /bin/true