Re: [OE-core] [PATCH] systemd-udev: Add systemd-mount to mount.sh

2018-03-11 Thread Hongzhi, Song
ping. // hongzhi On 2018年03月06日 18:54, Hongzhi.Song wrote: Issue: mkfs.ext4 fails, prompting that the device is in use by the system. But there is no mounted infomation in /proc/mounts. Reproduce: Be sure that there is storage device connected to you machine. Boot the machine.

[OE-core] [PATCH] systemd-udev: Add systemd-mount to mount.sh

2018-03-06 Thread Hongzhi.Song
Issue: mkfs.ext4 fails, prompting that the device is in use by the system. But there is no mounted infomation in /proc/mounts. Reproduce: Be sure that there is storage device connected to you machine. Boot the machine. root@intel-x86-64:~# mkfs.ext4 /dev/mmcblk0p1 mke2fs

[OE-core] [PATCH] systemd-udev: Add systemd-mount to mount.sh

2018-03-05 Thread Hongzhi.Song
If linux uses systemd as init, systemd-udevd.service sets MountFlags=slave, which is essentially a sandboxing setting: it detaches mount() operations done within the service from the rest of the system. This means that, outside of namespace of systemd-udev, we can not access device mounted by udev