https://bugzilla.novell.com/show_bug.cgi?id=656509
https://bugzilla.novell.com/show_bug.cgi?id=656509#c13
Petr Uzel
The following sequence reproduces the problem under systemd
# mount | grep /proc proc on /proc type proc (rw,relatime) # mkdir /root/proc # mount -o bind /proc /root/proc # mount -o remount,ro /root/proc # mount | grep proc proc on /proc type proc (ro,relatime) proc on /root/proc type proc (ro,relatime)
The reason might be the fact, there's no information about bind mount in /etc/mtab, as it's only link to /proc/mounts. The upper sequence did not work on 11.3 with linked mtab: mount -o remount,ro ends with mount: /root/proc is busy.
Yes; man 8 mount: ---- Note that behavior of the remount operation depends on the /etc/mtab file. The first command stores the 'bind' flag to the /etc/mtab file and the second command reads the flag from the file. If you have a system without the /etc/mtab file or if you explicitly define source and target for the remount command (then mount(8) does not read /etc/mtab), then you have to use bind flag (or option) for the remount command too. For example: mount --bind olddir newdir mount -o remount,ro,bind olddir newdir ----
I assume we need recent util-linux to make it work, Petr?
Please try to change the ntp.service: --- ntp.orig 2010-12-06 16:09:14.433023504 +0100 +++ ntp 2010-12-06 16:09:23.965026074 +0100 @@ -112,7 +112,7 @@ # prepare_chroot is called on every "start", but we need to mount only once if ! grep -q " ${CHROOT_PREFIX}/proc proc " /proc/mounts; then mount -o bind /proc ${CHROOT_PREFIX}/proc 2>/dev/null - mount -o remount,ro,nosuid,nodev ${CHROOT_PREFIX}/proc 2>/dev/null + mount -o remount,ro,nosuid,nodev,bind ${CHROOT_PREFIX}/proc 2>/dev/null fi NTPD_OPTIONS="${NTPD_OPTIONS} -i ${CHROOT_PREFIX}" } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.