diff --git a/build_rootfs.sh b/build_rootfs.sh index f31fbb1..4cc631f 100755 --- a/build_rootfs.sh +++ b/build_rootfs.sh @@ -44,4 +44,6 @@ release_name="${2}" debootstrap $release_name $rootfs_dir http://deb.debian.org/debian/ cp -r rootfs/* $rootfs_dir chroot_command="DEBUG=${DEBUG} release_name=${release_name} /opt/setup_rootfs.sh" -chroot $rootfs_dir /bin/bash -c "${chroot_command}" \ No newline at end of file +chroot $rootfs_dir /bin/bash -c "${chroot_command}" + +echo "rootfs has been created" \ No newline at end of file diff --git a/patch_rootfs.sh b/patch_rootfs.sh index 7e4b468..4531521 100755 --- a/patch_rootfs.sh +++ b/patch_rootfs.sh @@ -30,6 +30,7 @@ copy_modules() { cp -r "${shim_rootfs}/lib/modules/"* "${target_rootfs}/lib/modules/" cp -r --remove-destination "${shim_rootfs}/lib/firmware/"* "${target_rootfs}/lib/firmware/" + cp -r --remove-destination "${reco_rootfs}/lib/firmware/"* "${target_rootfs}/lib/firmware/" cp -r "${reco_rootfs}/lib/modprobe.d/"* "${target_rootfs}/lib/modprobe.d/" cp -r "${reco_rootfs}/etc/modprobe.d/"* "${target_rootfs}/etc/modprobe.d/" } diff --git a/rootfs/opt/setup_rootfs.sh b/rootfs/opt/setup_rootfs.sh index 3e36e5a..1b6820e 100755 --- a/rootfs/opt/setup_rootfs.sh +++ b/rootfs/opt/setup_rootfs.sh @@ -26,4 +26,12 @@ apt-get update apt-get upgrade -y #install desktop -apt-get install -y xfce4 xfce4-goodies network-manager blueman firefox-esr sudo \ No newline at end of file +apt-get install -y xfce4 xfce4-goodies network-manager blueman firefox-esr sudo + +echo "Enter a root password:" +passwd root + +read -p "Enter the username for the user account: " username +useradd -m -s /bin/bash -G sudo $username +echo "Enter the password for ${username}:" +passwd $username \ No newline at end of file