liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit de51bfe13d0264705ed96ebfe4586192953678ac
parent b09723345c16de8a76686e07882a544b731349df
Author: Daniel Barlow <dan@telent.net>
Date:   Tue, 23 Jan 2024 11:58:00 +0000

default root device in recovery to sda1

It will probably work fine for USB-stick boot (except in the case
where there is > 1 usb device plugged in, so maybe don't do that)

It doesn't matter for TFTP boot because boot.scr overrides the root=
param anyway

Diffstat:
Mexamples/recovery.nix | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/examples/recovery.nix b/examples/recovery.nix @@ -69,6 +69,9 @@ in rec { mnt = dir {}; }; rootfsType = "squashfs"; + # 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 + hardware.rootDevice = "/dev/sda1"; users.root = { # the password is "secret". Use mkpasswd -m sha512crypt to # create this hashed password string