summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-01-04 21:16:36 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2015-01-04 21:47:53 +0100
commitec9bd07c900e13d606445518a87e0326902d5815 (patch)
tree6736b5528d0fb5024a2fc66557e1d7f091d81949
parent44e7b72fa71425b02ec770b1f3429b27a5cf6c51 (diff)
downloadlive-boot-ec9bd07c900e13d606445518a87e0326902d5815.tar.gz
live-boot-ec9bd07c900e13d606445518a87e0326902d5815.zip
Dropping unionfs-fuse support:
* unionfs-fuse itself has been always very buggy for us. * unionfs-fuse code in live-boot as been experimental at best. * the FUSE implementation is horribly slow due to the nature of FUSE (~10min to boot a live system with unionfs-fuse compared to <<1min with aufs). * and last but not least, there's overlay in kernel mainline now.
-rwxr-xr-xbackend/initramfs-tools/live.hook6
-rwxr-xr-xcomponents/9990-main.sh15
-rwxr-xr-xcomponents/9990-misc-helpers.sh21
-rwxr-xr-xcomponents/9990-overlay.sh25
-rw-r--r--debian/control1
-rw-r--r--debian/live-boot.bug-script2
6 files changed, 5 insertions, 65 deletions
diff --git a/backend/initramfs-tools/live.hook b/backend/initramfs-tools/live.hook
index 234f334..55b0207 100755
--- a/backend/initramfs-tools/live.hook
+++ b/backend/initramfs-tools/live.hook
@@ -110,12 +110,6 @@ manual_add_modules aufs
manual_add_modules overlay
manual_add_modules unionfs
-# Filesystem: unionfs-fuse
-if [ -x /usr/bin/unionfs-fuse ]
-then
- copy_exec /usr/bin/unionfs-fuse /bin
-fi
-
# Filesystem: vfat
manual_add_modules nls_cp437
manual_add_modules nls_iso8859-1
diff --git a/components/9990-main.sh b/components/9990-main.sh
index 85b8a1d..512c624 100755
--- a/components/9990-main.sh
+++ b/components/9990-main.sh
@@ -148,15 +148,6 @@ Live ()
log_end_msg
- # unionfs-fuse needs /dev to be bind-mounted for the duration of
- # live-bottom; udev's init script will take care of things after that
- case "${UNIONTYPE}" in
- unionfs-fuse)
- mount -n -o bind /dev "${rootmnt}/dev"
- ;;
- esac
-
-
# aufs2 in kernel versions around 2.6.33 has a regression:
# directories can't be accessed when read for the first the time,
# causing a failure for example when accessing /var/lib/fai
@@ -201,12 +192,6 @@ Live ()
Swap
- case "${UNIONFS}" in
- unionfs-fuse)
- umount "${rootmnt}/dev"
- ;;
- esac
-
exec 1>&6 6>&-
exec 2>&7 7>&-
kill ${tailpid}
diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh
index 70f907a..fcd2b07 100755
--- a/components/9990-misc-helpers.sh
+++ b/components/9990-misc-helpers.sh
@@ -1294,11 +1294,6 @@ do_union ()
noxino_opt="noxino"
;;
- unionfs-fuse)
- rw_opt="RW"
- ro_opt="RO"
- ;;
-
*)
rw_opt="rw"
ro_opt="ro"
@@ -1306,22 +1301,6 @@ do_union ()
esac
case "${UNIONTYPE}" in
- unionfs-fuse)
- unionmountopts="-o cow -o noinitgroups -o default_permissions -o allow_other -o use_ino -o suid"
- unionmountopts="${unionmountopts} ${unionrw}=${rw_opt}"
- if [ -n "${unionro}" ]
- then
- for rofs in ${unionro}
- do
- unionmountopts="${unionmountopts}:${rofs}=${ro_opt}"
- done
- fi
- ( sysctl -w fs.file-max=391524 ; ulimit -HSn 16384
- unionfs-fuse ${unionmountopts} "${unionmountpoint}" ) && \
- ( mkdir -p /run/sendsigs.omit.d
- pidof unionfs-fuse >> /run/sendsigs.omit.d/unionfs-fuse || true )
- ;;
-
overlay)
# XXX: can multiple unionro be used? (overlay only handles two dirs, but perhaps they can be chained?)
# XXX: and can unionro be optional? i.e. can overlay skip lowerdir?
diff --git a/components/9990-overlay.sh b/components/9990-overlay.sh
index e22b905..9d26934 100755
--- a/components/9990-overlay.sh
+++ b/components/9990-overlay.sh
@@ -10,21 +10,12 @@ setup_unionfs ()
case ${UNIONTYPE} in
aufs|unionfs|overlay)
- modprobe -q -b ${UNIONTYPE}
-
- if ! cut -f2 /proc/filesystems | grep -q "^${UNIONTYPE}\$" && [ -x /bin/unionfs-fuse ]
+ if ! cut -f2 /proc/filesystems | grep -q "^${UNIONTYPE}\$"
then
- echo "${UNIONTYPE} not available, falling back to unionfs-fuse."
- echo "This might be really slow."
-
- UNIONTYPE="unionfs-fuse"
+ panic "${UNIONTYPE} not available."
fi
- ;;
- esac
- case "${UNIONTYPE}" in
- unionfs-fuse)
- modprobe fuse
+ modprobe -q -b ${UNIONTYPE}
;;
esac
@@ -358,15 +349,7 @@ setup_unionfs ()
# do nothing # mount -o bind "${d}" "${live_rootfs}"
;;
*)
- case "${UNIONTYPE}" in
- unionfs-fuse)
- mount -o bind "${d}" "${live_rootfs}"
- ;;
-
- *)
- mount -o move "${d}" "${live_rootfs}"
- ;;
- esac
+ mount -o move "${d}" "${live_rootfs}"
;;
esac
done
diff --git a/debian/control b/debian/control
index 9fcef5b..22a06d0 100644
--- a/debian/control
+++ b/debian/control
@@ -23,7 +23,6 @@ Suggests:
curlftpfs,
cryptsetup,
httpfs2,
- unionfs-fuse,
wget,
Description: Live System Boot Components
The Live Systems project maintains the components to build Debian based Live
diff --git a/debian/live-boot.bug-script b/debian/live-boot.bug-script
index e3f6d36..063ead8 100644
--- a/debian/live-boot.bug-script
+++ b/debian/live-boot.bug-script
@@ -7,7 +7,7 @@ dpkg -l busybox busybox-initramfs initramfs-tools udev
dpkg -l rsync uuid-runtime
# Checking suggests
-dpkg -l curlftpfs cryptsetup httpfs2 unionfs-fuse wget
+dpkg -l curlftpfs cryptsetup httpfs2 wget
# Checking other packages
dpkg -l plymouth