ubiquity ubiquity/success_command string to update-grub

Jelle de Jong jelledejong at powercraft.nl
Fri Sep 11 16:27:30 UTC 2020


Hello everybody,

I am running some advanced pxe automated installations successfully. I 
been trying to update the default kernel and all is working, except I 
can not seem to update-grub and get the kernel to show in the grub.cfg.

ubiquity ubiquity/success_command string \
     in-target apt-get install -y openssh-server vim intel-microcode 
amd64-microcode; \
     wget 
http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-modules-5.4.0-47-generic_5.4.0-47.51_amd64.deb 
-O /target/tmp/linux-modules-5.4.0-47-generic_5.4.0-47.51_amd64.deb; \
     wget 
http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-modules-extra-5.4.0-47-generic_5.4.0-47.51_amd64.deb 
-O /target/tmp/linux-modules-extra-5.4.0-47-generic_5.4.0-47.51_amd64.deb; \
     wget 
http://security.ubuntu.com/ubuntu/pool/main/l/linux-signed/linux-image-5.4.0-47-generic_5.4.0-47.51_amd64.deb 
-O /target/tmp/linux-image-5.4.0-47-generic_5.4.0-47.51_amd64.deb; \
     chroot /target dpkg -i 
/tmp/linux-modules-5.4.0-47-generic_5.4.0-47.51_amd64.deb; \
     chroot /target dpkg -i 
/tmp/linux-image-5.4.0-47-generic_5.4.0-47.51_amd64.deb; \
     chroot /target dpkg -i 
/tmp/linux-modules-extra-5.4.0-47-generic_5.4.0-47.51_amd64.deb; \
     chroot /target update-grub2; \
     chroot /target grub-mkconfig -o /boot/grub/grub.cfg;

Can somebody tell me why all my update-grub2 or grub-mkconfig commands 
are not working and suggest an solution?

Kind regards,

Jelle de Jong



More information about the Ubuntu-installer mailing list