[SCM] Debian Live build scripts branch, master, updated. 1.0.3-2-56-g1065d03
Chris Lamb
lamby at debian.org
Sun May 10 23:04:22 UTC 2009
The following commit has been merged in the master branch:
commit 1065d03afe324e6895704bdfe26596d5f149d65c
Author: Chris Lamb <lamby at debian.org>
Date: Sun May 10 23:58:38 2009 +0100
Print informative error message when trying to set hostname with dummy /bin/hostname.
This is to ease debugging when the dummy /bin/hostname sneaks into the
rootfs image.
Signed-off-by: Chris Lamb <lamby at debian.org>
diff --git a/helpers/lh_chroot_hostname b/helpers/lh_chroot_hostname
index c6ceecb..fa4d8e9 100755
--- a/helpers/lh_chroot_hostname
+++ b/helpers/lh_chroot_hostname
@@ -52,6 +52,12 @@ case "${1}" in
cat > chroot/bin/hostname << EOF
#!/bin/sh
+if [ ${#} != 0 ]
+then
+ echo "Silently ignoring request to set hostname - dummy /bin/hostname" >&2
+ exit 0
+fi
+
echo "localhost.localdomain"
EOF
--
Debian Live build scripts
More information about the debian-live-changes
mailing list