|
@@ -63,7 +63,7 @@ install(){
|
|
|
#----------
|
|
|
# Prepare disk
|
|
|
|
|
|
-echo "Wipe existing partition table to supress warnings from parted"
|
|
|
+echo "๐๏ธ Wipe existing partition table to supress warnings from parted"
|
|
|
dd if=/dev/zero of=$disk bs=512 count=34
|
|
|
|
|
|
# Parition disks -- pkg: parted
|
|
@@ -73,7 +73,7 @@ dd if=/dev/zero of=$disk bs=512 count=34
|
|
|
# Prepare disks with a single mbr partition
|
|
|
if [ "$partition" = "mbr-single" ]
|
|
|
then
|
|
|
- echo "Prepare mbr partition table with a single partition"
|
|
|
+ echo "๐ Prepare mbr partition table with a single partition"
|
|
|
parted $disk --script \
|
|
|
mklabel msdos \
|
|
|
mkpart primary ext4 512M 100% toggle 1 boot \
|
|
@@ -83,7 +83,7 @@ fi
|
|
|
# Prepare disks with gpt/efi
|
|
|
if [ "$partition" = "efi-crypt" ]
|
|
|
then
|
|
|
- echo "Prepare gpt partition table with following layout:"
|
|
|
+ echo "๐ Prepare gpt partition table with following layout:"
|
|
|
echo "- 301 MB partition for EFI --> p1"
|
|
|
echo "- 50 GB root partition for the OS (includes /boot) --> p2"
|
|
|
echo "- Remaining disk left to create a luks container --> p3"
|
|
@@ -209,11 +209,11 @@ apt-get clean --yes
|
|
|
useradd admin --create-home --shell /bin/bash
|
|
|
echo "admin:$pwdAdmin" | chpasswd
|
|
|
usermod -a -G sudo admin
|
|
|
-echo -e "\e[1;33;4;44mPassword for the user admin: $pwdAdmin\e[0m"
|
|
|
+echo -e "\e[1;33;4;44m๐ Password for the user admin: $pwdAdmin\e[0m"
|
|
|
pass=`pwgen --capitalize --numerals --ambiguous 12 1`
|
|
|
[ -z $pwdRoot ] && pwdRoot=`pwgen --capitalize --numerals --ambiguous 12 1`
|
|
|
echo "root:$pwdRoot" | chpasswd
|
|
|
-echo -e "\e[1;33;4;44mPassword for the user root: $pwdRoot\e[0m"
|
|
|
+echo -e "\e[1;33;4;44m๐ Password for the user root: $pwdRoot\e[0m"
|
|
|
|
|
|
# Harden SSHD
|
|
|
sed -i -e 's/#Port 22/Port 50101/g' /etc/ssh/sshd_config
|
|
@@ -322,7 +322,7 @@ unmount(){
|
|
|
! mountpoint -q $mnt || umount -v $mnt
|
|
|
# Delete mount-point if empty and not mounted
|
|
|
[ -d $mnt ] && [ -z "$(ls -A $mnt)" ] && ! mountpoint -q $mnt \
|
|
|
-&& rm -R $mnt && echo "mountpoint $mnt deleted"
|
|
|
+&& rm -R $mnt && echo "๐๏ธ mountpoint $mnt deleted"
|
|
|
}
|
|
|
|
|
|
|
|
@@ -354,7 +354,7 @@ case $1 in
|
|
|
echo "Stage 3: Install bootloader and unmount chroot"
|
|
|
bootloader
|
|
|
unmount
|
|
|
- echo "We're done and can reboot now"
|
|
|
+ echo "๐ We're done and can reboot now"
|
|
|
;;
|
|
|
postinstall)
|
|
|
echo "Stage 4: Start post-installation in live system"
|