[systemd-devel] moving from SysV to systemd - issue with / being ro
Reindl Harald
h.reindl at thelounge.net
Wed Oct 16 10:35:40 PDT 2013
Am 16.10.2013 19:22, schrieb Warpme:
> On 10/16/13 7:02 PM, Zbigniew Jędrzejewski-Szmek wrote:
>> On Wed, Oct 16, 2013 at 06:18:12PM +0200, Warpme wrote:
>>> Hi,
>>> I want to switch init system from SysV to systemd-196.
>>> Sys is PXE booted disk-less appliance with rootfs based on overlayfs.
>>>
>>> Currently I can PXEboot, successfully switch root from initrd to
>>> overlayfs based root, systemd starts and executes many of it's
>>> units.
>>> Unfortunately user units are failing due / is read-only.
>>> When I issue "mount -o remount,rw /" - root becomes rw - so it
>>> looks like systemd for some reason isn't remounting root to rw.
>>> Interesting is that exactly the same initrd->overlayfs script (see
>>> below) works OK for SysV - so I think issue isn't in my pivot_root
>>> procedure but rather systemd receives / in rw but leaves in ro (as
>>> "mount -o remount,rw /" allows to write to /).
>>>
>>> Script switching initrd to overlayfs root looks following:
>>>
>>> /bin/mount -n -t tmpfs none /rw
>>> /bin/mkdir -p /rw/rootfs
>>> /bin/mount -n -t overlayfs -o
>>> lowerdir=/rootfs-ro,upperdir=/rw/rootfs none /rootfs
>>> cd /rootfs
>>> /bin/mkdir -p initrd proc sys
>>> /sbin/pivot_root . initrd
>>> exec /usr/sbin/chroot . /usr/lib/systemd/systemd
>>>
>>> Where issue might be?
>> What's in /etc/fstab?
>>
>> Zbyszek
>>
> Zbyszku,
>
> Here is my fstab:
>
> none / auto remount,rw 0 0
why "none" and "remount"?
typically the line looks like this
UUID=b834776d-69d1-49c6-97c1-d6d758a438f0 / ext4 defaults
i doubt that anything smells what "none" means
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20131016/a9e6e1c8/attachment-0001.pgp>
More information about the systemd-devel
mailing list