diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:05:11 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:18:30 +0100 |
commit | 37a5c53ddd2825bf6b0ce521908a63d419683981 (patch) | |
tree | 0b0a8ea3072a4d6b9c37ce8efedb29d25a713e04 /functions | |
parent | 85c342c299231131d22764c0dfdcf977c57ce147 (diff) | |
download | vyos-live-build-37a5c53ddd2825bf6b0ce521908a63d419683981.tar.gz vyos-live-build-37a5c53ddd2825bf6b0ce521908a63d419683981.zip |
Adding live-helper 1.0~a14-1.
Diffstat (limited to 'functions')
-rwxr-xr-x | functions/common.sh | 2 | ||||
-rwxr-xr-x | functions/defaults.sh | 15 |
2 files changed, 13 insertions, 4 deletions
diff --git a/functions/common.sh b/functions/common.sh index 19e256641..5c25e29b0 100755 --- a/functions/common.sh +++ b/functions/common.sh @@ -10,4 +10,4 @@ set -e PROGRAM="`basename ${0}`" -VERSION="1.0~a13" +VERSION="1.0~a14" diff --git a/functions/defaults.sh b/functions/defaults.sh index 3c80b9064..8179ec3e9 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -171,11 +171,17 @@ Set_defaults () fi fi - # If we are root, disable root command if [ "`id -u`" = "0" ] then - # FIXME: this is disabled until considered safe + # If we are root, disable root command LIVE_ROOT_COMMAND="" + else + if [ -x /usr/bin/sudo ] + then + # FIXME: this is disabled until considered safe + #LIVE_ROOT_COMMAND="sudo" + LIVE_ROOT_COMMAND="" + fi fi # Setting tasksel @@ -425,6 +431,9 @@ Set_defaults () # Setting packages list string LIVE_PACKAGES_LISTS="${LIVE_PACKAGES_LISTS:-standard}" + # Setting package preseed + # LIVE_PRESEED + # Setting tasks string for LIST in ${LIVE_PACKAGES_LISTS} do @@ -579,5 +588,5 @@ Set_defaults () LIVE_SOURCE="${LIVE_SOURCE:-disabled}" # Setting image type - LIVE_SOURCE_IMAGES="${LIVE_SOURCE_IMAGES:-generic}" + LIVE_SOURCE_IMAGES="${LIVE_SOURCE_IMAGES:-tar}" } |