dracut: fix overlayfs paths

master
Harald Hoyer 2011-05-20 13:00:46 +02:00
parent 23b28c0ab5
commit 3da7836035
1 changed files with 3 additions and 3 deletions

View File

@ -86,9 +86,9 @@ do_live_overlay() {
setup="" setup=""
if [ -n "$devspec" -a -n "$pathspec" -a -n "$overlay" ]; then if [ -n "$devspec" -a -n "$pathspec" -a -n "$overlay" ]; then
mkdir -m 0755 /run/initramfs/overlayfs mkdir -m 0755 /run/initramfs/overlayfs
mount -n -t auto $devspec /overlayfs || : mount -n -t auto $devspec /run/initramfs/overlayfs || :
if [ -f /overlayfs$pathspec -a -w /overlayfs$pathspec ]; then if [ -f /run/initramfs/overlayfs$pathspec -a -w /run/initramfs/overlayfs$pathspec ]; then
losetup $OVERLAY_LOOPDEV /overlayfs$pathspec losetup $OVERLAY_LOOPDEV /run/initramfs/overlayfs$pathspec
if [ -n "$reset_overlay" ]; then if [ -n "$reset_overlay" ]; then
dd if=/dev/zero of=$OVERLAY_LOOPDEV bs=64k count=1 2>/dev/null dd if=/dev/zero of=$OVERLAY_LOOPDEV bs=64k count=1 2>/dev/null
fi fi