diff --git a/package/skeleton-systemd/skeleton-systemd.mk b/package/skeleton-systemd/skeleton-systemd.mk index cec6359007..384715e1c9 100644 --- a/package/skeleton-systemd/skeleton-systemd.mk +++ b/package/skeleton-systemd/skeleton-systemd.mk @@ -15,4 +15,11 @@ SKELETON_SYSTEMD_DEPENDENCIES = skeleton-common SKELETON_SYSTEMD_PROVIDES = skeleton +define SKELETON_SYSTEMD_INSTALL_TARGET_CMDS + mkdir -p $(TARGET_DIR)/home + mkdir -p $(TARGET_DIR)/srv + mkdir -p $(TARGET_DIR)/var + echo "/dev/root / auto rw 0 1" >$(TARGET_DIR)/etc/fstab +endef + $(eval $(generic-package)) diff --git a/package/skeleton-sysv/skeleton-sysv.mk b/package/skeleton-sysv/skeleton-sysv.mk index b0c2b6bac1..b5fa396ac2 100644 --- a/package/skeleton-sysv/skeleton-sysv.mk +++ b/package/skeleton-sysv/skeleton-sysv.mk @@ -15,4 +15,8 @@ SKELETON_SYSV_DEPENDENCIES = skeleton-common SKELETON_SYSV_PROVIDES = skeleton +define SKELETON_SYSV_INSTALL_TARGET_CMDS + $(call SYSTEM_RSYNC,$(SKELETON_SYSV_PKGDIR)/skeleton,$(TARGET_DIR)) +endef + $(eval $(generic-package)) diff --git a/system/skeleton/dev/log b/package/skeleton-sysv/skeleton/dev/log similarity index 100% rename from system/skeleton/dev/log rename to package/skeleton-sysv/skeleton/dev/log diff --git a/system/skeleton/dev/pts/.empty b/package/skeleton-sysv/skeleton/dev/pts/.empty similarity index 100% rename from system/skeleton/dev/pts/.empty rename to package/skeleton-sysv/skeleton/dev/pts/.empty diff --git a/system/skeleton/dev/shm/.empty b/package/skeleton-sysv/skeleton/dev/shm/.empty similarity index 100% rename from system/skeleton/dev/shm/.empty rename to package/skeleton-sysv/skeleton/dev/shm/.empty diff --git a/system/skeleton/etc/fstab b/package/skeleton-sysv/skeleton/etc/fstab similarity index 100% rename from system/skeleton/etc/fstab rename to package/skeleton-sysv/skeleton/etc/fstab diff --git a/system/skeleton/var/cache b/package/skeleton-sysv/skeleton/var/cache similarity index 100% rename from system/skeleton/var/cache rename to package/skeleton-sysv/skeleton/var/cache diff --git a/system/skeleton/var/lib/misc b/package/skeleton-sysv/skeleton/var/lib/misc similarity index 100% rename from system/skeleton/var/lib/misc rename to package/skeleton-sysv/skeleton/var/lib/misc diff --git a/system/skeleton/var/lock b/package/skeleton-sysv/skeleton/var/lock similarity index 100% rename from system/skeleton/var/lock rename to package/skeleton-sysv/skeleton/var/lock diff --git a/system/skeleton/var/log b/package/skeleton-sysv/skeleton/var/log similarity index 100% rename from system/skeleton/var/log rename to package/skeleton-sysv/skeleton/var/log diff --git a/system/skeleton/var/run b/package/skeleton-sysv/skeleton/var/run similarity index 100% rename from system/skeleton/var/run rename to package/skeleton-sysv/skeleton/var/run diff --git a/system/skeleton/var/spool b/package/skeleton-sysv/skeleton/var/spool similarity index 100% rename from system/skeleton/var/spool rename to package/skeleton-sysv/skeleton/var/spool diff --git a/system/skeleton/var/tmp b/package/skeleton-sysv/skeleton/var/tmp similarity index 100% rename from system/skeleton/var/tmp rename to package/skeleton-sysv/skeleton/var/tmp diff --git a/system/skeleton/dev/.empty b/system/skeleton/dev/.empty new file mode 100644 index 0000000000..e69de29bb2