|
|
|
|
@ -93,6 +93,8 @@ if ! [ "$?" = "0" ]; then
|
|
|
|
|
fi
|
|
|
|
|
echo "Done."
|
|
|
|
|
|
|
|
|
|
# no striped mirror support yet
|
|
|
|
|
|
|
|
|
|
# special exception for none raid - this just operates the disks like a stripe, for 1 or more disk - *not* recommended
|
|
|
|
|
if [ "$raidtype" = "none" ]; then
|
|
|
|
|
raidtype=""
|
|
|
|
|
@ -239,12 +241,12 @@ echo "cp /usr/share/zoneinfo/$timezone /etc/localtime" >> /mnt/setup-chroot.sh
|
|
|
|
|
echo "echo \"Done.\"" >> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
|
|
echo "echo \"\"" >> /mnt/setup-chroot.sh
|
|
|
|
|
echo "echo \"Installing linux image, bash, screen, tmux, zfs, vim, sharutils, docker, dosfstools, mailutils, openssh, ufw...\"" >> /mnt/setup-chroot.sh
|
|
|
|
|
echo "echo \"Installing linux image, bash, screen, tmux, zfs, vim, sharutils, docker, dosfstools, mailutils, openssh, net-utils, ufw...\"" >> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
|
|
# preconfigure postfix for no configuration
|
|
|
|
|
#echo "debconf-set-selections <<< \"postfix postfix/main_mailer_type string 'No configuration'\"" >> /mnt/setup-chroot.sh
|
|
|
|
|
#echo "debconf-set-selections <<< \"postfix postfix/mailname string $hostname\"" >> /mnt/setup-chroot.sh
|
|
|
|
|
echo "errors=\$(DEBCONF_FRONTEND='noninteractive' apt install -y --no-install-recommends linux-image-generic 2>&1 1>/dev/null && DEBCONF_FRONTEND='noninteractive' apt install -y vim bash screen tmux zfs-initramfs dosfstools openssh-server ufw sendmail mailutils docker.io sharutils 2>&1 1>/dev/null)" >> /mnt/setup-chroot.sh
|
|
|
|
|
echo "errors=\$(DEBCONF_FRONTEND='noninteractive' apt install -y --no-install-recommends linux-image-generic 2>&1 1>/dev/null && DEBCONF_FRONTEND='noninteractive' apt install -y vim net-tools bash screen tmux zfs-initramfs dosfstools openssh-server ufw sendmail mailutils docker.io sharutils 2>&1 1>/dev/null)" >> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
|
|
#echo "DEBCONF_FRONTEND='noninteractive' apt install -y --no-install-recommends linux-image-generic && apt install -y vim bash screen tmux zfs-initramfs dosfstools openssh-server ufw sendmail mailutils docker.io sharutils" >> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
|
|
@ -255,6 +257,7 @@ echo "fi">> /mnt/setup-chroot.sh
|
|
|
|
|
echo "echo \"Done.\"" >> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
|
|
# configure docker storage to use zfs
|
|
|
|
|
mkdir -p /mnt/etc/docker
|
|
|
|
|
echo "{\"storage-driver\":\"zfs\"}" > /mnt/etc/docker/daemon.json
|
|
|
|
|
|
|
|
|
|
echo 'echo ""' >> /mnt/setup-chroot.sh
|
|
|
|
|
|