From a43f2c53b80db264887cc053bdba9bce9573c714 Mon Sep 17 00:00:00 2001 From: jedi Date: Fri, 31 Jan 2020 15:43:48 +0100 Subject: [PATCH] wip --- entry.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/entry.sh b/entry.sh index 98ea97b..8856f65 100755 --- a/entry.sh +++ b/entry.sh @@ -7,17 +7,17 @@ function first_stage(){ echo -n "luks password: " read -s luks_password_in - export_env LUKS_PASSWORD $luks_password_in + export LUKS_PASSWORD=$luks_password_in echo echo -n "root password: " read -s root_password_in - export_env ROOT_PASSWORD $root_password_in + export ROOT_PASSWORD=$root_password_in echo echo -n "user password: " read -s user_password_in - export_env USER_PASSWORD $user_password_in + export USER_PASSWORD=$user_password_in echo lsblk -ftpo NAME,FSTYPE,LABEL,UUID,FSAVAIL,MOUNTPOINT @@ -103,12 +103,15 @@ function second_stage(){ echo bar second_stage echo $TARGET echo $LVM_SIZE - passwd + ( + echo $ROOT_PASSWORD + echo $ROOT_PASSWORD + ) | passwd echo -n > /etc/motd apt install -y linux-image-amd64 grub2 cryptsetup btrfs-progs lvm2 locales tzdata keyboard-configuration console-common mkdir /snap btrfs subvolume snapshot / /snap/$(date +%Y-%m-%d_basesystem) - apt install -y task-mate-desktop mate-desktop-environment-extra + #apt install -y task-mate-desktop mate-desktop-environment-extra adduser jedi }