diff options
| author | Michal Suchanek <hramrach@gmail.com> | 2012-10-05 15:32:05 +0200 |
|---|---|---|
| committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-06 13:54:13 +0200 |
| commit | 19c72d400121fec31ca4dfa5f44998510460225b (patch) | |
| tree | ef77bb4b0731f51421e47464ec2ff578bdb6fcd0 /scripts | |
| parent | 5937aa7e8492c259f8aa636aaceb06bee3463bed (diff) | |
| download | live-boot-19c72d400121fec31ca4dfa5f44998510460225b.tar.gz live-boot-19c72d400121fec31ca4dfa5f44998510460225b.zip | |
Including util-linux mount in initramfs.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/boot/9990-cmdline-old | 5 | ||||
| -rwxr-xr-x | scripts/boot/9990-main.sh | 6 | ||||
| -rwxr-xr-x | scripts/boot/9990-overlay.sh | 3 |
3 files changed, 13 insertions, 1 deletions
diff --git a/scripts/boot/9990-cmdline-old b/scripts/boot/9990-cmdline-old index b8fc4a6..16fc206 100755 --- a/scripts/boot/9990-cmdline-old +++ b/scripts/boot/9990-cmdline-old @@ -30,6 +30,11 @@ Cmdline_old () export DHCP ;; + klibc-mount=*) + KLIBC_MOUNT="${_PARAMETER#klibc-mount=}" + export KLIBC_MOUNT + ;; + ethdevice=*) DEVICE="${_PARAMETER#ethdevice=}" ETHDEVICE="${DEVICE}" diff --git a/scripts/boot/9990-main.sh b/scripts/boot/9990-main.sh index 983a1cb..0924581 100755 --- a/scripts/boot/9990-main.sh +++ b/scripts/boot/9990-main.sh @@ -32,6 +32,12 @@ Main () . /conf/param.conf fi + if [ -x /bin/mount.util-linux ] && [ -z "${KLIBC_MOUNT}" ] + then + # fuse does not work with klibc mount + ln -f /bin/mount.util-linux /bin/mount + fi + # Needed here too because some things (*cough* udev *cough*) # changes the timeout diff --git a/scripts/boot/9990-overlay.sh b/scripts/boot/9990-overlay.sh index 4739042..b4f5082 100755 --- a/scripts/boot/9990-overlay.sh +++ b/scripts/boot/9990-overlay.sh @@ -323,7 +323,8 @@ setup_unionfs () then # FIXME: handle PERSISTENCE_READONLY unionmountopts="-t ${cow_fstype} -o noatime,union,${cow_mountopt} ${cowdevice}" - mount_full $unionmountopts "${unionmountpoint}" + # unionmount only works with util-linux mount + mount.util-linux $unionmountopts "${unionmountpoint}" else cow_dir="/live/overlay${dir}" rootfs_dir="${rootfs}${dir}" |
