Dropping /etc/live.conf, replaced mostly by /etc/live/config.conf of live-config.
authorDaniel Baumann <daniel@debian.org>
Fri, 4 Jun 2010 07:39:37 +0000 (09:39 +0200)
committerDaniel Baumann <daniel@debian.org>
Sat, 5 Jun 2010 12:06:55 +0000 (14:06 +0200)
Makefile
bin/live-snapshot
conf/live.conf [deleted file]
hooks/live
scripts/live
scripts/live-bottom/02etc_live_conf [deleted file]
scripts/live-bottom/25configure_init

index 7b15560..85b8909 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,6 @@ build:
 install:
        # (FIXME)
        # Installing configuration
-       install -D -m 0644 conf/live.conf $(DESTDIR)/etc/live.conf
        install -D -m 0644 conf/compcache $(DESTDIR)/usr/share/initramfs-tools/conf.d/compcache
 
        # Installing executables
@@ -79,10 +78,6 @@ install:
        done
 
 uninstall:
-       # (FIXME)
-       # Uninstalling configuration
-       rm -f $(DESTDIR)/etc/live.conf
-
        # Uninstalling executables
        rm -f $(DESTDIR)/sbin/live-getty $(DESTDIR)/sbin/live-login $(DESTDIR)/sbin/live-snapshot $(DESTDIR)/sbin/live-swapfile
        rm -rf $(DESTDIR)/usr/share/live-boot
index 1e080c3..08e5fd6 100755 (executable)
@@ -40,7 +40,11 @@ fi
 . /usr/share/initramfs-tools/scripts/live-helpers
 
 LIVE_CONF="/etc/live.conf"
-. "${LIVE_CONF}"
+
+if [ -r "${LIVE_CONF}" ]
+then
+       . "${LIVE_CONF}"
+fi
 
 export USERNAME USERFULLNAME HOSTNAME
 
diff --git a/conf/live.conf b/conf/live.conf
deleted file mode 100644 (file)
index 93bf41d..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# /etc/live.conf - configuration file for live-boot(7)
-
-USERNAME="user"
-USERFULLNAME="Debian Live user"
-HOSTNAME="debian"
-
-export USERNAME USERFULLNAME HOSTNAME
index 645b168..adadab3 100755 (executable)
@@ -27,14 +27,6 @@ esac
 # Handling live-boot
 
 # Configuration
-if [ -r /etc/live.conf ]
-then
-       . /etc/live.conf
-
-       mkdir -p "${DESTDIR}"/etc
-       cp /etc/live.conf "${DESTDIR}"/etc
-fi
-
 mkdir -p "${DESTDIR}"/usr/share/live-boot
 cp /usr/share/live-boot/languagelist "${DESTDIR}"/usr/share/live-boot
 
index 5c6a82e..4eaf3a6 100755 (executable)
@@ -34,9 +34,6 @@ then
        touch /etc/mtab
 fi
 
-[ -f /etc/live.conf ] && . /etc/live.conf
-export USERNAME USERFULLNAME HOSTNAME
-
 . /scripts/live-helpers
 
 if [ ! -f /live.vars ]
@@ -1829,8 +1826,4 @@ mountroot ()
        exec 2>&7 7>&-
        kill ${tailpid}
        [ -w "${rootmnt}/var/log/" ] && cp live.log "${rootmnt}/var/log/" 2>/dev/null
-       if [ -f /etc/live.conf ]
-       then
-               cp /etc/live.conf "${rootmnt}/etc/"
-       fi
 }
diff --git a/scripts/live-bottom/02etc_live_conf b/scripts/live-bottom/02etc_live_conf
deleted file mode 100755 (executable)
index 8309a15..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-boot header
-
-. /scripts/live-functions
-
-log_begin_msg "Copying config on real root fs"
-
-# live-boot script
-
-if [ -f /etc/live.conf ]
-then
-       if [ ! -z "${LIVECONF}" ]
-       then
-               # Updating live.conf
-               sed -i -e 's/\(USERNAME="\).*"/\1'"${USERNAME}"'"/g' \
-                      -e 's/\(USERFULLNAME="\).*"/\1'"${USERFULLNAME}"'"/g' \
-                      -e 's/\(HOSTNAME="\).*"/\1'"${HOSTNAME}"'"/g' \
-               /etc/live.conf
-       fi
-
-       cp -p /etc/live.conf /root/etc/live.conf
-else
-
-cat > /root/etc/live.conf << EOF
-export USERNAME="${USERNAME}"
-export USERFULLNAME="${USERFULLNAME}"
-export HOSTNAME="${HOSTNAME}"
-EOF
-
-fi
-
-log_end_msg
index a84eb75..b82d2aa 100755 (executable)
@@ -28,6 +28,8 @@ log_begin_msg "Setting up init"
 
 # Arrange for shells on virtual consoles, rather than login prompts
 
+USERNAME="user"
+
 if [ -z "${NOAUTOLOGIN}" ] && [ -n "${USERNAME}" ]
 then
        if [ ! -z "${LIVE_GETTY}" ]