init: only relabel rootfs if started from initramfs
authorDaniel Golle <daniel@makrotopia.org>
Tue, 31 May 2022 16:14:37 +0000 (17:14 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 1 Jun 2022 19:40:23 +0000 (20:40 +0100)
commit7a0096853594874d4c60266ec338ac23728017df
tree60803c8ee326acb2c06b57772e6f4c2381f9019c
parent557c98e2966e0298a301f540824e2c3fce2452e6
init: only relabel rootfs if started from initramfs

Do not relabel all the filesystem if not running from initramfs, it
should only be needed in this case.
Read-write (ext4) labels should be set when generating the filesystem
just like it's done for squashfs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
initd/init.c