File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2828* tar
2929* uck
3030* .pub
31+
32+ u-root /
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ SOURCE=${SOURCE:=$HOME/go/src/github.com/u-root/u-root}
44KERNEL=${KERNEL:= $HOME / linuxboot/ mainboards/ intel/ generic/ kernel-noinitramfs}
55VMN=${VMN:= 42}
66KEY=${KEY:= ~/ .ssh/ cpu_rsa.pub: key.pub}
7+ UROOT=${UROOT:= ~/ go/ src/ github.com/ u-root/ u-root}
78
89echo NOTE: WE USED TO RUN CPUD AUTOMAGICALLY
910echo That turned out to be inconvenient for testing
@@ -17,13 +18,10 @@ echo -initcmd=/bbin/cpud \
1718# $* is positioned where it is so you can use extra switches like -h or add files via, e.g., -files whatever
1819# you can also add non-switch args too.
1920# it allows you to configure the initramfs a bit more, with or without switches
20- u-root \
21- -files $KEY \
22- -uroot-source $SOURCE \
23- $* \
24- all \
25- cmds/cpud \
26- cmds/cpu \
21+ # The day when u-root was superconvenient to use is gone, done in by modules.
22+ # goanywhere makes it much less hard.
23+ go install github.com/u-root/gobusybox/src/cmd/goanywhere@latest
24+ goanywhere ${UROOT} /cmds/core/* ./cmds/cpu ./cmds/cpud -- u-root -files $KEY
2725
2826echo NOT adding a host key at -files ssh_host_rsa_key:etc/ssh/ssh_host_rsa_key
2927
You can’t perform that action at this time.
0 commit comments