add extlinux in recovery example

this needlessly bloats the TFTP image, which is a shame, but is
needed for installing onto usb stick
mainline-omnia-wip
Daniel Barlow 2024-02-02 19:51:41 +00:00
parent 89c88dd472
commit ef707de8b1
1 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,7 @@ in rec {
../modules/outputs/ubimage.nix ../modules/outputs/ubimage.nix
../modules/outputs/jffs2.nix ../modules/outputs/jffs2.nix
../modules/outputs/ext4fs.nix ../modules/outputs/ext4fs.nix
../modules/outputs/extlinux.nix
]; ];
kernel.config = { kernel.config = {
@ -33,6 +34,7 @@ in rec {
serverip = "10.0.0.1"; # build machine or other tftp server serverip = "10.0.0.1"; # build machine or other tftp server
freeSpaceBytes = 1024 * 1024 * 4; freeSpaceBytes = 1024 * 1024 * 4;
}; };
boot.loader.extlinux.enable = true;
hostname = "recovery"; hostname = "recovery";
@ -83,9 +85,11 @@ in rec {
mnt = dir {}; mnt = dir {};
}; };
rootfsType = "ext4"; rootfsType = "ext4";
# sda is most likely correct for the boot-from-USB case. For tftp # sda is most likely correct for the boot-from-USB case. For tftp
# it's overridden by the boot.scr anyway, so maybe it all works out # it's overridden by the boot.scr anyway, so maybe it all works out
hardware.rootDevice = "/dev/sda1"; hardware.rootDevice = lib.mkForce "/dev/sda1";
users.root = { users.root = {
# the password is "secret". Use mkpasswd -m sha512crypt to # the password is "secret". Use mkpasswd -m sha512crypt to
# create this hashed password string # create this hashed password string