You are not logged in.
So I have a root subvolume with a basic install which I can then take a snapshot of and experiment with different WMs and whatnot, which I have done.
Usually if there is a version mismatch between older and newer versions of linux on different subvolumes, the subvolume with the older version won't complete loading the initramfs and won't boot. In that case, my solution is usually to chroot into it and bring it up to date from a bootable subvolume.
Well this time I updated my gnome subvolume first, but for some reason I can't chroot into the root subvolume. It gives me a
chroot: failed to run command ‘usr/bin/zsh’: No such file or directoryerror. The subvolume is properly mounted, the symlinks from /lib, /lib64, and /usr/lib64 to /usr/lib are present, and I can go to /the subvolume's usr/lib and find zsh just fine.
Another troubling thing is that the old grsec kernel which hasn't been updated in forever still isn't bootable on the root snapshot, which if the usual logic of my setup holds it should be, since it's at the same version between all the snapshots. This tells me something is wrong.
I've also tried scrubbing and balancing and deduplicating the filesystem, but it didn't help. I guess my next attempt will be to unmount the other subvolumes (might have been mounted during the last linux upgrade...) and reinstall linux/ rebuild initramfs's, and if that doesn't work I'll defrag in order to de-dedup the filesystem, in case that's the issue.
Any thoughts appreciated. I think this booting into different btrfs snapshots thing, while very powerful, isn't well understood and deserves more discussion.
Last edited by jamdox (2017-07-08 03:31:47)
Offline
chroot: failed to run command ‘usr/bin/zsh’: No such file or directory
/the subvolume's usr/lib
?
ezik
Offline
?
Broken symlinks to /usr/lib are a known sown cause of this error. The symlinks from /bin to /usr/bin are also in place. Defraggin and the rest didn't do anything, so I"m not sure what to do.
Offline
Well I fixed it. I literally just booted into a live usb, mounted the root subvolume and ran pacstrap on it. No idea what the problem was, but that fixed it. I probably could have done it from within a different subvolume, but it was a last (or 2nd to last...) resort and I wanted to clone the drive and whatnot.
Offline