deever2
March 11th, 2021, 08:08 PM
Hi folks!
I'm trying to install Ubuntu (focal) from a Live system using debootstrap with the attached bootstrap-ubuntu script.
This works fine when I manually confirm the dpkg dialogs and select /dev/sda.
However I'd like to run this completely unattended and when I replace the linux-generic install line with
DEBIAN_FRONTEND=noninteractive chroot /mnt apt-get install -yq linux-generic
chroot /mnt grub-install /dev/sda
chroot /mnt update-grub
, Grub won't be installed, at least not in a state that makes it boot the system.
Can anyone help me, please?
I'm trying to install Ubuntu (focal) from a Live system using debootstrap with the attached bootstrap-ubuntu script.
This works fine when I manually confirm the dpkg dialogs and select /dev/sda.
However I'd like to run this completely unattended and when I replace the linux-generic install line with
DEBIAN_FRONTEND=noninteractive chroot /mnt apt-get install -yq linux-generic
chroot /mnt grub-install /dev/sda
chroot /mnt update-grub
, Grub won't be installed, at least not in a state that makes it boot the system.
Can anyone help me, please?