vmactions / netbsd-vm

Use NetBSD in github actions
MIT License
17 stars 1 forks source link

sshfs not working #5

Open schmonz opened 7 months ago

schmonz commented 7 months ago

Hi! These Actions are extremely handy for anyone actually interested in platform portability. Thank you for providing them.

I wanted to compare sync: sshfs with sync: rsync, and found that the former appears not to be working on NetBSD. To try to validate this, here's output of /sbin/mount within freebsd-vm, where the job succeeds:

/dev/gpt/rootfs on / (ufs, local, soft-updates)
devfs on /dev (devfs)
/dev/gpt/efiesp on /boot/efi (msdosfs, local)
host:work on /home/runner/work (fusefs.sshfs)

And within netbsd-vm, where the job gives errors such as fatal: could not create work tree dir: No such file or directory:

/dev/dk0 on / type ffs (local)
tmpfs on /tmp type tmpfs (local)
kernfs on /kern type kernfs (local)
ptyfs on /dev/pts type ptyfs (local)
procfs on /proc type procfs (local)
tmpfs on /var/shm type tmpfs (local)

I'm happy to try something further to validate the problem and/or test a fix.

Neilpang commented 7 months ago

Here is the test: https://github.com/vmactions/netbsd-vm/actions/runs/7675558306/job/20921929690

It seems sshfs is working here.

Neilpang commented 7 months ago

sorry, it seems not working. give me some time to check more.

Neilpang commented 7 months ago

fixed, try with the latest release version

schmonz commented 7 months ago

I now see /dev/puffs on /home/runner/work type puffs|host:work (nodev, nosuid) mounted. Something's still not quite right, though. If I throw a pwd right after the /sbin/mount, it gives this error: pwd: getcwd() failed: No such file or directory. For comparison, openbsd-vm says /home/runner/work/pkgsrc-mlog/pkgsrc-mlog, which makes sense given that the shell connection is made with exec ssh: cd $GITHUB_WORKSPACE;. Not sure why NetBSD's doesn't give the same result. This is with usesh: true, in case that affects the outcome.

Neilpang commented 7 months ago

weird

Neilpang commented 7 months ago

it's like a random issue.