Skip to content

Commit

Permalink
Always move live filesystem mounts to /root within initramfs, regardl…
Browse files Browse the repository at this point in the history
…ess if mountpoint already exists or not (Closes: #688782).
  • Loading branch information
daniel-baumann committed Sep 26, 2012
1 parent 09fe71c commit b7f0254
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions scripts/boot/9990-main.sh
Expand Up @@ -146,11 +146,8 @@ Main ()
esac

# Move to the new root filesystem so that programs there can get at it.
if [ ! -d /root/live/image ]
then
mkdir -p /root/live/image
mount --move /live/image /root/live/image
fi
mkdir -p /root/live/image
mount --move /live/image /root/live/image

# aufs2 in kernel versions around 2.6.33 has a regression:
# directories can't be accessed when read for the first the time,
Expand All @@ -159,7 +156,7 @@ Main ()
ls /root/* >/dev/null 2>&1

# Move findiso directory to the new root filesystem so that programs there can get at it.
if [ -d /live/findiso ] && [ ! -d /root/live/findiso ]
if [ -d /live/findiso ]
then
mkdir -p /root/live/findiso
mount -n --move /live/findiso /root/live/findiso
Expand Down

0 comments on commit b7f0254

Please sign in to comment.