Casper config
This commit is contained in:
parent
3d1b8e2f7e
commit
c07adb5dad
|
|
@ -66,23 +66,6 @@ deb-src $TARGET_UBUNTU_MIRROR $TARGET_UBUNTU_VERSION-security main restricted un
|
|||
|
||||
deb $TARGET_UBUNTU_MIRROR $TARGET_UBUNTU_VERSION-updates main restricted universe multiverse
|
||||
deb-src $TARGET_UBUNTU_MIRROR $TARGET_UBUNTU_VERSION-updates main restricted universe multiverse
|
||||
EOF
|
||||
|
||||
cat <<EOF > /etc/casper.conf
|
||||
# This file should go in /etc/casper.conf
|
||||
# Supported variables are:
|
||||
# USERNAME, USERFULLNAME, HOST, BUILD_SYSTEM, FLAVOUR
|
||||
|
||||
export USERNAME="live"
|
||||
export USERFULLNAME="Live session user"
|
||||
export HOST="privOS"
|
||||
export BUILD_SYSTEM="Ubuntu"
|
||||
|
||||
# USERNAME and HOSTNAME as specified above won't be honoured and will be set to
|
||||
# flavour string acquired at boot time, unless you set FLAVOUR to any
|
||||
# non-empty string.
|
||||
|
||||
export FLAVOUR="Ubuntu"
|
||||
EOF
|
||||
|
||||
echo "$TARGET_NAME" > /etc/hostname
|
||||
|
|
@ -155,6 +138,9 @@ function install_pkg() {
|
|||
;;
|
||||
esac
|
||||
|
||||
# Modify casper file
|
||||
sed -i s/ubuntu/$TARGET_NAME/g /etc/casper.conf
|
||||
|
||||
# install kernel
|
||||
apt-get install -y --no-install-recommends $TARGET_KERNEL_PACKAGE
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue