From 93cf3f3736024bc28acb61668e6292832414003a Mon Sep 17 00:00:00 2001 From: Eric Edgar Date: Fri, 29 Apr 2005 14:43:18 +0000 Subject: [PATCH] Change default hostnames for livecds git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@639 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 6 +++++- targets/support/livecdfs-update.sh | 11 ++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 112c2b03..92904906 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.251 2005/04/29 14:40:25 rocket Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.252 2005/04/29 14:43:18 rocket Exp $ + + 29 Apr 2005; Eric Edgar + targets/support/livecdfs-update.sh: + Change default hostnames for livecds 29 Apr 2005; Eric Edgar targets/support/bootloader-setup.sh, targets/support/livecdfs-update.sh: diff --git a/targets/support/livecdfs-update.sh b/targets/support/livecdfs-update.sh index dfe1cde2..2905c08e 100755 --- a/targets/support/livecdfs-update.sh +++ b/targets/support/livecdfs-update.sh @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/livecdfs-update.sh,v 1.12 2005/04/29 14:40:25 rocket Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/livecdfs-update.sh,v 1.13 2005/04/29 14:43:18 rocket Exp $ . /tmp/chroot-functions.sh update_env_settings @@ -39,6 +39,7 @@ cp /usr/share/zoneinfo/UTC /etc/localtime # setup the hostname case ${clst_livecd_type} in gnap) + echo "livecd" > /etc/hostname echo "gentoo" > /etc/dnsdomainname echo "127.0.0.1 livecd.gentoo livecd localhost" > /etc/hosts ;; @@ -48,14 +49,14 @@ case ${clst_livecd_type} in echo "127.0.0.1 gamecd.gentoo gamecd localhost" > /etc/hosts ;; gentoo-*) - echo "livecd" > /etc/hostname + echo "gentoo-livecd" > /etc/hostname echo "gentoo" > /etc/dnsdomainname - echo "127.0.0.1 livecd.gentoo livecd localhost" > /etc/hosts + echo "127.0.0.1 gentoo-livecd.gentoo gentoo-livecd localhost" > /etc/hosts ;; *) - echo "catalyst-livecd" > /etc/hostname + echo "livecd" > /etc/hostname echo "gentoo" > /etc/dnsdomainname - echo "127.0.0.1 catalyst-livecd catalyst-livecd.gentoo livecd localhost" > /etc/hosts + echo "127.0.0.1 livecd.gentoo livecd localhost" > /etc/hosts ;; esac -- 2.26.2