[Bug 13161] Services started with start-stop-daemon applet not properly destroyed when stopped

bugzilla at busybox.net bugzilla at busybox.net
Tue Dec 1 08:01:54 UTC 2020


https://bugs.busybox.net/show_bug.cgi?id=13161

--- Comment #5 from Ivan Castell Rovira <al004140 at gmail.com> ---
As explained in a previous posts, this issue only happens when the board is
booted from root=ram. The same rootfs bootted using root=/dev/mmcblk1p3
partitions works fine:

# cat /proc/cmdline
console=ttymxc0,115200 root=/dev/mmcblk1p3 rootwait ro

# ps fax
PID   USER     COMMAND
    1 root     init
    2 root     [kthreadd]
    3 root     [ksoftirqd/0]
    4 root     [kworker/0:0]
    5 root     [kworker/0:0H]
    6 root     [kworker/u2:0]
    7 root     [rcu_preempt]
    8 root     [rcu_sched]
    9 root     [rcu_bh]
   10 root     [migration/0]
   11 root     [lru-add-drain]
   12 root     [cpuhp/0]
   13 root     [kdevtmpfs]
   14 root     [netns]


Just in case some information could be helpful to debug, attached are all
relevant files involved in the initial steps of mounting the rootfs:

# ls -l /sbin/init
lrwxrwxrwx    1 root     root     14 Nov  9 12:49 /sbin/init -> ../bin/busybox


# cat /proc/cmdline 
console=ttymxc0,115200 root=ram initrd=0x82000000,50M rootfstype=ext4 rw


# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount pt>   <type>  <options>                <dump>  <pass>
/dev/root       /            ext4    auto,ro                    0       0
proc            /proc        proc    defaults                   0       0
devpts          /dev/pts     devpts  defaults,gid=5,mode=620    0       0
tmpfs           /dev/shm     tmpfs   mode=0777                  0       0
tmpfs           /tmp         tmpfs   defaults                   0       0
sysfs           /sys         sysfs   defaults                   0       0
debugfs   /sys/kernel/debug/ debugfs defaults                   0       0




# cat /etc/inittab
# /etc/inittab
# Startup the system
::sysinit:/bin/mount -o remount,rw /
::sysinit:/etc/init.d/rcS
::sysinit:/bin/mount -o remount,ro /

# Put a getty on the serial port
ttymxc0::respawn:/sbin/getty -L  ttymxc0 0 vt100 # GENERIC_SERIAL

# Stuff to do before rebooting
::shutdown:/etc/init.d/rcK
::shutdown:/bin/umount -a -r



cat /etc/init.d/rcS
#!/bin/sh

mount_overlay() {
        mkdir -p /tmp/overlays$1 /tmp/overlays-work$1
        mount -t overlay overlay -o
lowerdir=$1,upperdir=/tmp/overlays$1,workdir=/tmp/overlays-work$1 $1
}

. /etc/profile
# Flasher manually mounts devtmpfs
mount -t devtmpfs none /dev 2> /dev/null || true
mkdir -p /dev/pts /dev/shm
mount -a
echo "[$IMAGE_SIDE] Mounting manually devtmpfs ... $(get_status)"

# Mount some overlays
mount_overlay /etc
mount_overlay /root
mount_overlay /usr
mount_overlay /var
mount_overlay /run

Hope all this this helps to discover what is wrong. Please remember the rootfs
is built using the buildroot tool. Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list