wip
This commit is contained in:
parent
5471c6b363
commit
a43f2c53b8
1 changed files with 8 additions and 5 deletions
13
entry.sh
13
entry.sh
|
@ -7,17 +7,17 @@ function first_stage(){
|
||||||
|
|
||||||
echo -n "luks password: "
|
echo -n "luks password: "
|
||||||
read -s luks_password_in
|
read -s luks_password_in
|
||||||
export_env LUKS_PASSWORD $luks_password_in
|
export LUKS_PASSWORD=$luks_password_in
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo -n "root password: "
|
echo -n "root password: "
|
||||||
read -s root_password_in
|
read -s root_password_in
|
||||||
export_env ROOT_PASSWORD $root_password_in
|
export ROOT_PASSWORD=$root_password_in
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo -n "user password: "
|
echo -n "user password: "
|
||||||
read -s user_password_in
|
read -s user_password_in
|
||||||
export_env USER_PASSWORD $user_password_in
|
export USER_PASSWORD=$user_password_in
|
||||||
echo
|
echo
|
||||||
|
|
||||||
lsblk -ftpo NAME,FSTYPE,LABEL,UUID,FSAVAIL,MOUNTPOINT
|
lsblk -ftpo NAME,FSTYPE,LABEL,UUID,FSAVAIL,MOUNTPOINT
|
||||||
|
@ -103,12 +103,15 @@ function second_stage(){
|
||||||
echo bar second_stage
|
echo bar second_stage
|
||||||
echo $TARGET
|
echo $TARGET
|
||||||
echo $LVM_SIZE
|
echo $LVM_SIZE
|
||||||
passwd
|
(
|
||||||
|
echo $ROOT_PASSWORD
|
||||||
|
echo $ROOT_PASSWORD
|
||||||
|
) | passwd
|
||||||
echo -n > /etc/motd
|
echo -n > /etc/motd
|
||||||
apt install -y linux-image-amd64 grub2 cryptsetup btrfs-progs lvm2 locales tzdata keyboard-configuration console-common
|
apt install -y linux-image-amd64 grub2 cryptsetup btrfs-progs lvm2 locales tzdata keyboard-configuration console-common
|
||||||
mkdir /snap
|
mkdir /snap
|
||||||
btrfs subvolume snapshot / /snap/$(date +%Y-%m-%d_basesystem)
|
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
|
adduser jedi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue