Auto-confirm apt-get commands, fix initramfs-tools scripts locations
This commit is contained in:
parent
92db508711
commit
577989268c
6
basic.sh
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user