]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
system: do not set hostname and issue for custom skeleton
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 17 Jul 2016 08:44:28 +0000 (10:44 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 18 Jul 2016 21:45:49 +0000 (23:45 +0200)
We expect the custom skeleton to be fully filled with the necessary
files, now. There is definitely no reason we should handle setting the
hostname and the issue file in there. A user using a custom skeleton
should be fully responsible for providing a functional skeleton.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/skeleton/skeleton.mk
system/Config.in

index 43496202c3d8a1dfdcda497106b94a9d033fa951..1000161c34fe86334e00db504c60cc59f8cf23e9 100644 (file)
@@ -113,6 +113,10 @@ define SKELETON_INSTALL_STAGING_CMDS
        ln -snf lib $(STAGING_DIR)/usr/$(SKELETON_LIB_SYMLINK)
 endef
 
+# The TARGET_FINALIZE_HOOKS must be sourced only if the users choose to use the
+# default skeleton.
+ifeq ($(BR2_ROOTFS_SKELETON_DEFAULT),y)
+
 SKELETON_TARGET_GENERIC_HOSTNAME = $(call qstrip,$(BR2_TARGET_GENERIC_HOSTNAME))
 SKELETON_TARGET_GENERIC_ISSUE = $(call qstrip,$(BR2_TARGET_GENERIC_ISSUE))
 SKELETON_TARGET_GENERIC_ROOT_PASSWD = $(call qstrip,$(BR2_TARGET_GENERIC_ROOT_PASSWD))
@@ -141,10 +145,6 @@ endef
 TARGET_FINALIZE_HOOKS += SKELETON_SET_ISSUE
 endif
 
-# The TARGET_FINALIZE_HOOKS must be sourced only if the users choose to use the
-# default skeleton.
-ifeq ($(BR2_ROOTFS_SKELETON_DEFAULT),y)
-
 define SKELETON_SET_NETWORK_LOCALHOST
        ( \
                echo "# interface file auto-generated by buildroot"; \
index d9a9dfb06a700dd26b16df65314973afdeeb4c4f..4c05186fc56ff8bac86973865e30d7e32e73c99a 100644 (file)
@@ -28,6 +28,8 @@ config BR2_ROOTFS_MERGED_USR
 
 endif
 
+if BR2_ROOTFS_SKELETON_DEFAULT
+
 config BR2_TARGET_GENERIC_HOSTNAME
        string "System hostname"
        default "buildroot"
@@ -46,6 +48,8 @@ config BR2_TARGET_GENERIC_ISSUE
          Leave empty to not create /etc/issue, or to keep the
          one from a custom skeleton.
 
+endif
+
 choice
        bool "Passwords encoding"
        default BR2_TARGET_GENERIC_PASSWD_MD5