aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/debootstrap01.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-02-04 02:57:01 +0100
committerSven Gothel <[email protected]>2021-02-04 02:57:01 +0100
commit3048ee5112dc72dcd5e8d9d50939e8a2308f431a (patch)
tree2102d71b36d54a75971f1d41aab3e8af2a1338bd /scripts/debootstrap01.sh
parent96db86bf13cdc83630b90457093b507146f923a2 (diff)
Fix misc image issues / cleanup
- Using LOCALUSERNAME for the new local user within the produced image - Using IMPORTUSERNAME for source user-name of data to be copied to LOCALUSERNAME - Only copy data into image in debootstrap01.sh stage: -- selected config to /root -- everything from /home/$IMPORTUSERNAME -> $STRAPROOT/home/$LOCALUSERNAME - debootstrap02.sh -- use proper zfs 2.0.2-1 install script -- fix sshd host file attributes and use local copy sshd_config - Using xz compression for squashfs
Diffstat (limited to 'scripts/debootstrap01.sh')
-rw-r--r--scripts/debootstrap01.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/debootstrap01.sh b/scripts/debootstrap01.sh
index ce1b402..fd01277 100644
--- a/scripts/debootstrap01.sh
+++ b/scripts/debootstrap01.sh
@@ -71,7 +71,11 @@ if [ -e ../../debian/packages ] ; then
fi
mkdir -p $STRAPROOT/root/.ssh
-cp -a /home/$MYUSERNAME/.ssh/authorized_keys $STRAPROOT/root/.ssh/
+cp -a /home/$IMPORTUSERNAME/.ssh/authorized_keys $STRAPROOT/root/.ssh/
+cp -a /home/$IMPORTUSERNAME/.vimrc $STRAPROOT/root/
+cp -a /home/$IMPORTUSERNAME/.exrc $STRAPROOT/root/
+
+cp -a /home/$IMPORTUSERNAME $STRAPROOT/home/$LOCALUSERNAME
echo RUN: chroot $STRAPROOT /bin/bash --login
echo then: cd /root/debian-zfs-live/scripts