Bug#844775: udev: initramfs init-bottom/udev script fails to mount /dev when using virtual filesystems
Luca Boccassi
luca.boccassi at gmail.com
Fri Nov 18 22:58:51 GMT 2016
Package: udev
Version: 232-3
Severity: normal
Dear Maintainer,
Due to a recent change in busybox and initramfs-tools, the mount utility
in the initramfs now comes from util-linux rather than busybox.
scripts/init-bottom/udev calls "mount -o move", which was supported by
busybox's mount but not by util-linux's mount.
See the following for the full discussion:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823856
This causes an error and a failure to boot when using virtual file
systems.
Both utilities support "mount --move", so attached is a patch that
implements this small change. I've successfully used this change to get
our squashfs based image working again.
Thank you!
Kind regards,
Luca Boccassi
From 34addb1aeae38026b1f8a451a99d1bde4d922da7 Mon Sep 17 00:00:00 2001
From: Luca Boccassi <luca.boccassi at gmail.com>
Date: Fri, 18 Nov 2016 20:09:58 +0000
Subject: [PATCH] Use mount --move in initramfs-tools udev script
Due to recent changes in busybox and initramfs-tools the mount
utility is no longer the one from busybox but from util-linux.
The latter does not support mount -o move.
The former supports both -o move and --move, so use it instead to be
compatible with both.
See this discussion for more details:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823856
---
debian/extra/initramfs-tools/scripts/init-bottom/udev | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/extra/initramfs-tools/scripts/init-bottom/udev b/debian/extra/initramfs-tools/scripts/init-bottom/udev
index 81081e3..e997380 100755
--- a/debian/extra/initramfs-tools/scripts/init-bottom/udev
+++ b/debian/extra/initramfs-tools/scripts/init-bottom/udev
@@ -15,7 +15,7 @@ esac
udevadm control --exit
# move the /dev tmpfs to the rootfs
-mount -n -o move /dev ${rootmnt}/dev
+mount -n --move /dev ${rootmnt}/dev
# create a temporary symlink to the final /dev for other initramfs scripts
if command -v nuke >/dev/null; then
--
2.1.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20161118/665c8ec3/attachment.sig>
More information about the Pkg-systemd-maintainers
mailing list