[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#756593: busybox's switch_root makes read-only NFS root read/write



Am 07.08.2014 um 15:02 schrieb Alexander Zimmermann <alexander.zimmermann@netapp.com>:

> 
> Am 06.08.2014 um 07:42 schrieb Michael Tokarev <mjt@tls.msk.ru>:
> 
>> 05.08.2014 17:36, Zimmermann, Alexander wrote:
>> 
>>> Despite the fact that I was unable to write a proper wrapper :-) - the kernel crashes - 
>>> I know now that neither busybox nor AUFS is the culprit. See below:
>> 
>> Um.  The wrapper should be something like:
>> 
>> #! /bin/sh
>> echo mounts before-init:
>> mount
>> exec /sbin/init "$@"
>> 
>> The key point is, I think, the `exec' keyword.  Init should be started as pid=1.
> 

So here is the full output. Vanilla Linux 3.16. No patches. There is definitely something
broken in the userland. I will set up a new image via debootstrap next week.


(initramfs) mount
rootfs on / type rootfs (rw)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /root/dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=2051439,mode=755)
devpts on /root/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
tmpfs on /root/run type tmpfs (rw,nosuid,relatime,size=3282972k,mode=755)
192.168.0.10:/muclab/image/debian-sid on /root type nfs (ro,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,nolock,proto=tcp,port=2049,timeo=7,retrans=10,sec=sys,local_lock=all,addr=192.168.0.10)
(initramfs) exit
mounts before-init:
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=2051439,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=3282972k,mode=755)
192.168.0.10:/muclab/image/debian-sid on / type nfs (ro,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,nolock,proto=tcp,port=2049,timeo=7,retrans=10,sec=sys,local_lock=all,addr=192.168.0.10)
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Starting the hotplug events dispatcher: udevd.
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.20.1
done.
[ ok ] Cleaning up temporary files....
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[ ok ] Configuring network interfaces...done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
[info] Setting console screen modes and fonts.
INIT: Entering runlevel: 2wersave m
[info] Using makefile-style concurrent boot in runlevel 2.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting enhanced syslogd: rsyslogd.
[warn] Not running within Xen or no compatible utils ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting automount....
[ ok ] Starting periodic command scheduler: cron.
Inserting openvswitch module.
Starting ovsdb-server.
Configuring Open vSwitch system IDs.
Starting ovs-vswitchd.
Enabling remote OVSDB managers.

Debian GNU/Linux jessie/sid UNKNOWN ttyS0

UNKNOWN login: alexandz
Password: 
Last login: Fri Aug  8 12:21:21 CEST 2014 from vpn2ntap-54538.vpn.netapp.com on pts/0
Linux UNKNOWN 3.16.0.vanilla+ #1 SMP Tue Aug 5 14:07:48 CEST 2014 x86_64

Please see http://wikid.netapp.com/w/MUClab for more information
about the lab equipment.
alexandz@UNKNOWN:~$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=2051439,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1641488k,mode=755)
192.168.0.10:/muclab/image/debian-sid on / type nfs (rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,nolock,proto=tcp,port=2049,timeo=7,retrans=10,sec=sys,local_lock=all,addr=192.168.0.10)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=3282960k)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,size=3282960k)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
/etc/auto.home on /home type autofs (rw,relatime,fd=6,pgrp=1629,timeout=300,minproto=5,maxproto=5,indirect)
192.168.0.10:/home/alexandz on /home/alexandz type nfs (rw,noatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.0.10,mountvers=3,mountport=635,mountproto=tcp,local_lock=none,addr=192.168.0.10)
alexandz@UNKNOWN:~$ 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


Reply to: