Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xattr fix #294

Merged
merged 3 commits into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions TESTCPU
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/bin/bash
set -e
SOURCE=${SOURCE:=$HOME/go/src/github.com/u-root/u-root}
UROOT=${UROOT:=$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}
KEY=${KEY:=$HOME/.ssh/cpu_rsa.pub}

echo NOTE: WE USED TO RUN CPUD AUTOMAGICALLY
echo That turned out to be inconvenient for testing
Expand All @@ -13,6 +12,11 @@ echo If you want to test cpud as the init, add this line
echo to the u-root command, along with the other switches.
echo -initcmd=/bbin/cpud \

# error our early for simple things
ls ${KEY}
ls -d ${UROOT}
ls ${KERNEL}

# You will need to put your host key and private key somewhere. They will be placed in the proper place in the image.
#
# $* is positioned where it is so you can use extra switches like -h or add files via, e.g., -files whatever
Expand Down
2 changes: 1 addition & 1 deletion session/session_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (s *Session) Namespace() error {
// The debug= option is here so you can see how to temporarily set it if needed.
// It generates copious output so use it sparingly.
// A useful compromise value is 5.
opts := fmt.Sprintf("version=9p2000.L,trans=fd,rfdno=%d,wfdno=%d,uname=%v,debug=0,msize=%d", fd, fd, user, s.msize)
opts := fmt.Sprintf("version=9p2000.L,noxattr,trans=fd,rfdno=%d,wfdno=%d,uname=%v,debug=0,msize=%d", fd, fd, user, s.msize)
if len(s.mopts) > 0 {
opts += "," + s.mopts
}
Expand Down
Loading