From 577989268c1379682280a753570dc383a04d1fe9 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Fri, 23 Jun 2017 16:09:10 +0200 Subject: [PATCH] Auto-confirm apt-get commands, fix initramfs-tools scripts locations --- basic.sh | 6 +++--- .../share/initramfs-tools/{ => scripts}/local-top/cryptroot | 0 .../usr/share/initramfs-tools/{ => scripts}/local-top/lvm2 | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename basic/usr/share/initramfs-tools/{ => scripts}/local-top/cryptroot (100%) rename basic/usr/share/initramfs-tools/{ => scripts}/local-top/lvm2 (100%) diff --git a/basic.sh b/basic.sh index 4e29601..928f7c0 100644 --- a/basic.sh +++ b/basic.sh @@ -1,10 +1,10 @@ #!/bin/bash # Uninstall unnecessary packages -apt-get purge bsdmainutils dictionaries-common emacsen-common gnupg gnupg-agent iamerican ibritish ienglish-common installation-report ispell laptop-detect libsqlite3-0 libssl1.1 nano os-prober pinentry-curses task-english tasksel tasksel-data wamerican +apt-get -y purge bsdmainutils dictionaries-common emacsen-common gnupg gnupg-agent iamerican ibritish ienglish-common installation-report ispell laptop-detect libsqlite3-0 libssl1.1 nano os-prober pinentry-curses task-english tasksel tasksel-data wamerican # Install OpenSSH server -apt-get --no-install-recommends install openssh-server +apt-get --no-install-recommends -y install openssh-server cp basic/root/.ssh/authorized_keys /root/.ssh/authorized_keys # Rename encrypted partition @@ -12,7 +12,7 @@ sed -i 's/sda2_crypt/system/' /etc/crypttab dmsetup rename sda2_crypt system update-initramfs -u -# Hide warnings during boot +# Suppress warnings during boot cp basic/usr/share/initramfs-tools/scripts/local-top/lvm2 /usr/share/initramfs-tools/scripts/local-top/lvm2 cp basic/usr/share/initramfs-tools/scripts/local-top/cryptroot /usr/share/initramfs-tools/scripts/local-top/cryptroot update-initramfs -u diff --git a/basic/usr/share/initramfs-tools/local-top/cryptroot b/basic/usr/share/initramfs-tools/scripts/local-top/cryptroot similarity index 100% rename from basic/usr/share/initramfs-tools/local-top/cryptroot rename to basic/usr/share/initramfs-tools/scripts/local-top/cryptroot diff --git a/basic/usr/share/initramfs-tools/local-top/lvm2 b/basic/usr/share/initramfs-tools/scripts/local-top/lvm2 similarity index 100% rename from basic/usr/share/initramfs-tools/local-top/lvm2 rename to basic/usr/share/initramfs-tools/scripts/local-top/lvm2