Summary: | ./bin/fuser: Can't create 'bin/fuser' | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | prokennexusa <prokennexusa> |
Component: | FreeBSD | Assignee: | Gentoo/BSD Team <bsd+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aballier, chithanh, nigoro.dev, prokennexusa |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | sample patch for freebsd-ubin-9.2_rc3.ebuild |
Description
prokennexusa
2013-05-11 14:47:27 UTC
I am looking deeper, this appers to be related to the ZFS File system ONLY. I was able to clear the error on a second FreeBSD Gentoo workstation by running a fsck on the UFS2 file system prior to deploying Stage 3. I will update the Bug report as I determin the actual cause. (In reply to prokennexusa from comment #1) > I am looking deeper, this appers to be related to the ZFS File system ONLY. > I was able to clear the error on a second FreeBSD Gentoo workstation by > running a fsck on the UFS2 file system prior to deploying Stage 3. > > I will update the Bug report as I determin the actual cause. no more info -> closing as needinfo What more info do you need? (In reply to Chí-Thanh Christopher Nguyễn from comment #3) > What more info do you need? sounds like a fs error, maybe a disk problem, rather than anything we can do something about The problem is reproducible in QEMU too. No errors are written to dmesg. what kernel / boot cd ? what fs ? what fs options ? are soft updates enabled ? This happens when following https://wiki.gentoo.org/wiki/Gentoo_FreeBSD instructions with ZFS in the step "tar xjpf stage3-*.tar.bz2 -C /mnt" Boot CD used is FreeBSD-9.1-RELEASE-amd64-bootonly.iso (In reply to Chí-Thanh Christopher Nguyễn from comment #7) > This happens when following https://wiki.gentoo.org/wiki/Gentoo_FreeBSD > instructions with ZFS in the step "tar xjpf stage3-*.tar.bz2 -C /mnt" > > Boot CD used is FreeBSD-9.1-RELEASE-amd64-bootonly.iso probably something for Yuta to have a look at then (In reply to Chí-Thanh Christopher Nguyễn from comment #7) > This happens when following https://wiki.gentoo.org/wiki/Gentoo_FreeBSD > instructions with ZFS in the step "tar xjpf stage3-*.tar.bz2 -C /mnt" > > Boot CD used is FreeBSD-9.1-RELEASE-amd64-bootonly.iso Thanks for info. The slightly old ZFS part, so I wrote when Gentoo/FreeBSD 8.2. Currently, bin/fuser is hard link. So, you can not create it on different partition... root@:/mnt # tar tjpvf stage3-amd64-freebsd-9.1.tar.bz2 bin/fuser hr-xr-xr-x 0 root wheel 0 May 27 04:04 ./bin/fuser link to ./usr/bin/fstat root@:/mnt # ln usr/bin/fstat bin/fuser ln: bin/fuser: Cross-device link Create symlink /usr/bin/fstat to /bin/fuser, you will be able to continue installing. root@:/mnt # ln -s /usr/bin/fstat /mnt/bin/fuser Created attachment 357234 [details, diff]
sample patch for freebsd-ubin-9.2_rc3.ebuild
split partition support, like /, /usr, /var, /tmp, /home.
sys-freebsd/freebsd-ubin-9.2_rc3 still have this problem.
This patch create a symbolic link instead.
Before applying the patch)
# ls -li /bin/fuser /usr/bin/fuser /usr/bin/fstat
2458372 -r-xr-xr-x 2 root wheel 18480 Aug 27 22:49 /bin/fuser
2458372 -r-xr-xr-x 2 root wheel 18480 Aug 27 22:49 /usr/bin/fstat
10891785 lrwxrwxrwx 1 root wheel 10 Aug 27 22:49 /usr/bin/fuser -> /bin/fuser
After applying the patch)
# ls -li /bin/fuser /usr/bin/fuser /usr/bin/fstat
2458372 lrwxrwxrwx 1 root wheel 14 Aug 28 20:15 /bin/fuser -> /usr/bin/fuser
10891783 -r-xr-xr-x 2 root wheel 18480 Aug 28 20:15 /usr/bin/fstat
10891783 -r-xr-xr-x 2 root wheel 18480 Aug 28 20:15 /usr/bin/fuser
A better way, a better patch, very welcome.
we might very well leave fuser in /usr/bin then; iirc openrc needed it but I'm not sure if it hardcodes the path fixed in 9.2_rc3; fbsd-9.2 stages will be fixed, meanwhle I think it could be documented on the wiki |