This is less error-prone, particularly as for some inexplicable reason
regular mount has stopped working.
--without-tinfo \
--without-ncurses \
--without-systemd \
- --disable-makeinstall-chown
+ --disable-makeinstall-chown \
+ --enable-static-programs=mount
cd util-linux-$(UTIL_LINUX_VERSION) && PATH=$(ROOT)/fixed-gcc:$$PATH make
cd util-linux-$(UTIL_LINUX_VERSION) && PATH=$(ROOT)/fixed-gcc:$$PATH make install DESTDIR=$(ROOT)/stage3-chroot
rm -f stage3-chroot/usr/lib64/*.la
export LD_LIBRARY_PATH
# Root filesystem is mounted as ro, remount it as rw.
-mount -o remount,rw /
+mount.static -o remount,rw /
# Mount standard filesystems.
-mount -t proc /proc /proc
-mount -t sysfs /sys /sys
-mount -t tmpfs -o "nosuid,size=20%,mode=0755" tmpfs /run
+mount.static -t proc /proc /proc
+mount.static -t sysfs /sys /sys
+mount.static -t tmpfs -o "nosuid,size=20%,mode=0755" tmpfs /run
mkdir -p /run/lock
# XXX devtmpfs