Bug#845161: udev: "mount: invalid option --" when busybox is not installed

Martin Pitt mpitt at debian.org
Mon Nov 21 08:50:39 GMT 2016


Control: tag -1 grave

Hello,

Michael Biebl [2016-11-21  1:15 +0100]:
> Am 21.11.2016 um 00:50 schrieb Simon McVittie:
> > Because udev's initramfs hook now does "mount --move", it doesn't work with
> > klibc mount, which is used when busybox isn't installed:
> 
> 
> This was changed as a response to
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844775
> 
> Luca, you wrote that initramfs-tools is now using mount from util-linux,
> but I can't find anything in the initramfs-tools changelog

Even if that gets fixed soon in initramfs-tools, we still need to
provide a working upgrade path. How about

--- a/debian/extra/initramfs-tools/scripts/init-bottom/udev
+++ b/debian/extra/initramfs-tools/scripts/init-bottom/udev
@@ -14,8 +14,9 @@ esac
 # Stop udevd, we'll miss a few events while we run init, but we catch up
 udevadm control --exit
 
-# move the /dev tmpfs to the rootfs
-mount -n --move /dev ${rootmnt}/dev
+# move the /dev tmpfs to the rootfs; fall back to klibc mount that does not
+# understand --move
+mount -n --move /dev ${rootmnt}/dev || mount -n -o move /dev ${rootmnt}/dev

As this breaks booting pretty hard, I'll raise to RC, and will upload
this today if there are no objections. (I also need to upload for
unbreaking some D-Bus activated services).

Thanks,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20161121/6e47d25c/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list