summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-08-18 11:18:26 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-08-18 11:18:26 -0500
commit6e81280ce85af8b5032292346f35542091b9960f (patch)
treef4e6055d9ff34fa4d5efe2bca7bef8ab7a644931
parent028c78633b050cc3bff6fbcaad0ecb5caa98d990 (diff)
downloadimage-6e81280ce85af8b5032292346f35542091b9960f.tar.gz
image-6e81280ce85af8b5032292346f35542091b9960f.tar.bz2
image-6e81280ce85af8b5032292346f35542091b9960f.tar.xz
image-6e81280ce85af8b5032292346f35542091b9960f.zip
adelie-build-cd: Ensure Zsh is used
-rwxr-xr-xadelie-build-cd5
1 files changed, 4 insertions, 1 deletions
diff --git a/adelie-build-cd b/adelie-build-cd
index c27bcb5..650da2f 100755
--- a/adelie-build-cd
+++ b/adelie-build-cd
@@ -156,6 +156,8 @@ install_pkgs() {
make_structure() {
mkdir -p squashroot-$ARCH/home/live
+ cp squashroot-$ARCH/etc/skel/.zshrc squashroot-$ARCH/home/live/
+ chown 1000:1000 squashroot-$ARCH/home/live/.zshrc
mkdir squashroot-$ARCH/target
mkdir -p squashroot-$ARCH/media/live
mkdir -p squashroot-$ARCH/etc/runlevels/{sysinit,boot,default,shutdown}
@@ -183,7 +185,8 @@ make_structure() {
proc /proc proc defaults 0 1
FSTAB
- echo 'live:x:1000:1000:Live User:/home/live:/bin/bash' >> squashroot-$ARCH/etc/passwd
+ sed -i 's#/root:/bin/sh$#/root:/bin/zsh#' squashroot-$ARCH/etc/passwd
+ echo 'live:x:1000:1000:Live User:/home/live:/bin/zsh' >> squashroot-$ARCH/etc/passwd
echo 'live:x:1000:' >> squashroot-$ARCH/etc/group
echo 'live::::::::' >> squashroot-$ARCH/etc/shadow
chown 1000:1000 squashroot-$ARCH/home/live