live-builder: minor fixes
su wasn't making it into the image breaking ~/.git setup, and there's no reason for a full default boot timeout either.
This commit is contained in:
parent
24edc620d8
commit
809ae4d9e8
@ -20,7 +20,8 @@ distro/live-isomd5sum: distro/.base use/live/base use/isomd5sum
|
||||
@$(call add,LIVE_PACKAGES,livecd-isomd5sum)
|
||||
|
||||
distro/live-builder: pkgs := livecd-tmpfs livecd-online-repo mkimage-profiles
|
||||
distro/live-builder: distro/.live-base use/dev/mkimage use/dev/repo
|
||||
distro/live-builder: distro/.live-base use/dev/mkimage use/dev/repo \
|
||||
use/syslinux/timeout/30
|
||||
@$(call set,KFLAVOURS,$(BIGRAM))
|
||||
@$(call add,LIVE_LISTS,$(call tags,base && (server || builder)))
|
||||
@$(call add,LIVE_PACKAGES,zsh sudo)
|
||||
|
@ -3,7 +3,7 @@ use/dev:
|
||||
@$(call add,THE_PACKAGES,git-core hasher gear)
|
||||
|
||||
use/dev/mkimage: use/dev
|
||||
@$(call add,THE_PACKAGES,mkimage shadow-change)
|
||||
@$(call add,THE_PACKAGES,mkimage shadow-change su)
|
||||
|
||||
use/dev/repo: use/dev use/repo/main
|
||||
@$(call add,THE_PACKAGES,apt-repo)
|
||||
|
@ -13,10 +13,10 @@ HOME="/home/$USER"
|
||||
install -dm750 -o "$USER" -g "$USER" "$HOME"
|
||||
|
||||
# we honestly don't know much more
|
||||
if type -t git >&/dev/null; then
|
||||
if type -t git && type -t su; then
|
||||
su - -c "git config --global user.email $USER@localhost" "$USER"
|
||||
su - -c "git config --global user.name 'live builder'" "$USER"
|
||||
fi
|
||||
fi >&/dev/null
|
||||
|
||||
# developer should feel comfortable, eh? ;-)
|
||||
ZSHELL="/bin/zsh"
|
||||
|
Loading…
x
Reference in New Issue
Block a user