From 769783817149f2404c6a24206d3c4bd68289cd9f Mon Sep 17 00:00:00 2001 From: Kyle K Date: Sat, 25 Apr 2020 22:46:00 -0500 Subject: add ability to change username, set hostname and domain name after install --- install.sh | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 864a1d5..4f8d738 100755 --- a/install.sh +++ b/install.sh @@ -137,6 +137,13 @@ fi echo "extracting precompiled image.squashfs GentooX image to the target partition..." unsquashfs -f -d /mnt/install/ /mnt/cdrom/image.squashfs /usr/local/sbin/genfstab -U /mnt/install/ >> /mnt/install/etc/fstab +echo -e "extraction complete.\n" + +read -erp "set hostname: " -i "gentoox" hostname +read -erp "set domain name " -i "haxx.dafuq" domainname +read -erp "set username: " -i "gentoox" username +read -erp "set user password: " -i "gentoox" userpassword +read -erp "set root password: " -i "gentoox" rootpassword mount -t proc none /mnt/install/proc mount --rbind /dev /mnt/install/dev @@ -147,13 +154,26 @@ cat </dev/null 2>&1 echo "Installation complete, you may remove the install media and reboot" -- cgit v1.2.3