package/skeleton-systemd: move var factory comment closer to code
Commit 8cbfbe487a
(package/skeleton-systemd: systemd-ify mounting /var
tmpfs with ro rootfs) removed the fstab handling of /var, and left the
macro deal solely about keeping / read-only.
However, the code about how the var factory is handled was left above
the macro, which is now misleading and confusing.
Move the comment closer to the actual rootfs-pre-cmd hook which actually
deals with handling the var factory.
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
728518fa64
commit
e02fdfe26b
@ -23,15 +23,15 @@ endef
|
||||
|
||||
else
|
||||
|
||||
define SKELETON_INIT_SYSTEMD_ROOT_RO_OR_RW
|
||||
echo "/dev/root / auto ro 0 1" >$(TARGET_DIR)/etc/fstab
|
||||
endef
|
||||
|
||||
# On a R/O rootfs, /var is a tmpfs filesystem. So, at build time, we
|
||||
# redirect /var to the "factory settings" location. Just before the
|
||||
# filesystem gets created, the /var symlink will be replaced with
|
||||
# a real (but empty) directory, and the "factory files" will be copied
|
||||
# back there by the tmpfiles.d mechanism.
|
||||
define SKELETON_INIT_SYSTEMD_ROOT_RO_OR_RW
|
||||
echo "/dev/root / auto ro 0 1" >$(TARGET_DIR)/etc/fstab
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_INIT_SYSTEMD_VAR_FACTORY),y)
|
||||
define SKELETON_INIT_SYSTEMD_PRE_ROOTFS_VAR
|
||||
rm -rf $(TARGET_DIR)/usr/share/factory/var
|
||||
|
Loading…
Reference in New Issue
Block a user