From 46cc2c679b565388c5b1038ba23424dca5a6c7c1 Mon Sep 17 00:00:00 2001 From: Fathi Boudra Date: Thu, 5 Mar 2015 10:57:13 +0200 Subject: linaro-image-lng: fix autoserial login and hostname * inittab strings have changed, fixed the sed command * due to some changes in base-files, hostname was the default machine name * add comments to explain why we use the fixup instead of OE facilities Change-Id: I14dde6d3debe7bb6fe8a9e3ed47c58ba28c30fbf Signed-off-by: Fathi Boudra --- meta-linaro/recipes-linaro/images/linaro-image-lng.bb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/meta-linaro/recipes-linaro/images/linaro-image-lng.bb b/meta-linaro/recipes-linaro/images/linaro-image-lng.bb index ca010f3a..65fa0fbf 100644 --- a/meta-linaro/recipes-linaro/images/linaro-image-lng.bb +++ b/meta-linaro/recipes-linaro/images/linaro-image-lng.bb @@ -56,14 +56,16 @@ FEATURE_PACKAGES_autoserial = "auto-serial-console" IMAGE_PREPROCESS_COMMAND_qemux86 += "qemux86_fixup;" qemux86_fixup() { - sed -i '/getty 115200 ttyS0/d' ${IMAGE_ROOTFS}/etc/inittab + # Since we use autoserial, remove serial consoles + # See sysvinit-inittab recipe + sed -i '/2345:respawn:\/sbin\/getty/d' ${IMAGE_ROOTFS}/etc/inittab + # Add a default network interface echo "auto eth0" >> ${IMAGE_ROOTFS}/etc/network/interfaces echo "iface eth0 inet dhcp" >> ${IMAGE_ROOTFS}/etc/network/interfaces -} - -IMAGE_PREPROCESS_COMMAND += "do_mangle_hostname;" -do_mangle_hostname() { - echo 'linaro' > ${IMAGE_ROOTFS}${sysconfdir}/hostname + # The hostname can be changed by using + # hostname_pn-base-files = "linaro" + # See base-files recipe + echo "linaro" > ${IMAGE_ROOTFS}${sysconfdir}/hostname } -- cgit v1.2.3