diff --git a/builder.sh b/builder.sh index 4cbc282..89ba99c 100755 --- a/builder.sh +++ b/builder.sh @@ -85,6 +85,7 @@ mkdir -p $CHROOT_DIR # # Copio el script chroot_setup.sh al directorio chroot cp chroot_setup.sh $CHROOT_DIR cp buildlib.sh $CHROOT_DIR +cp root_passwd $CHROOT_DIR chmod +x $CHROOT_DIR/chroot_setup.sh # # Deploy boot strap diff --git a/chroot_setup.sh b/chroot_setup.sh index edbde66..5100be0 100644 --- a/chroot_setup.sh +++ b/chroot_setup.sh @@ -196,6 +196,11 @@ function user_add() { echo "og:og" | chpasswd } +function set_root_passwd() { + ROOT_PASSWORD=$(cat /root_passwd) + echo "root:$ROOT_PASSWORD" | chpasswd +} + ## Main echo "ubuntu-fs-live" > /etc/hostname @@ -210,6 +215,7 @@ install_packages sudo ubuntu-standard sudo casper dbus-bin mesa-utils mesa-vulk install_non_interactive sddm openbox plymouth calamares terminator pcmanfm yad install_no_recommends linux-image-generic user_add +set_root_passwd configure_divert create_desktop_installer remove_unneeded_packages diff --git a/setup_chroot_ubuntu.sh b/setup_chroot_ubuntu.sh index 2f6ff96..f6617a0 100644 --- a/setup_chroot_ubuntu.sh +++ b/setup_chroot_ubuntu.sh @@ -16,7 +16,7 @@ source buildlib.sh set_root_passwd mount_proc_sys_dev setup_sources_list -install_no_recommends ubuntu-minimal dbus-bin grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common grub-efi-amd64-signed shim-signed inittamfs-tools +install_no_recommends ubuntu-minimal dbus-bin grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common grub-efi-amd64-signed shim-signed initramfs-tools configure_divert install_no_recommends linux-image-generic clean