Skip to content

Commit

Permalink
Fix the TESTCPU script and .gitignore for the new world
Browse files Browse the repository at this point in the history
goanwyhere is really nice, use that.

Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
  • Loading branch information
rminnich authored and orangecms committed Dec 12, 2024
1 parent 50279c5 commit 6c6144f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@
*tar
*uck
*.pub

u-root/
12 changes: 5 additions & 7 deletions TESTCPU
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ SOURCE=${SOURCE:=$HOME/go/src/github.com/u-root/u-root}
KERNEL=${KERNEL:=$HOME/linuxboot/mainboards/intel/generic/kernel-noinitramfs}
VMN=${VMN:=42}
KEY=${KEY:=~/.ssh/cpu_rsa.pub:key.pub}
UROOT=${UROOT:=~/go/src/github.com/u-root/u-root}

echo NOTE: WE USED TO RUN CPUD AUTOMAGICALLY
echo That turned out to be inconvenient for testing
Expand All @@ -17,13 +18,10 @@ echo -initcmd=/bbin/cpud \
# $* is positioned where it is so you can use extra switches like -h or add files via, e.g., -files whatever
# you can also add non-switch args too.
# it allows you to configure the initramfs a bit more, with or without switches
u-root \
-files $KEY \
-uroot-source $SOURCE \
$* \
all \
cmds/cpud \
cmds/cpu \
# The day when u-root was superconvenient to use is gone, done in by modules.
# goanywhere makes it much less hard.
go install github.com/u-root/gobusybox/src/cmd/goanywhere@latest
goanywhere ${UROOT}/cmds/core/* ./cmds/cpu ./cmds/cpud -- u-root -files $KEY

echo NOT adding a host key at -files ssh_host_rsa_key:etc/ssh/ssh_host_rsa_key

Expand Down

0 comments on commit 6c6144f

Please sign in to comment.