[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "FATAL: kernel too old" when running mmdebootstrap'd riscv64 chroot



On Tue, Oct 23, 2018 at 08:56:54PM +0100, Luke Kenneth Casson Leighton wrote:
> possible hypothetical explanations are that binfmt uses an old
> (cached?) version of the /usr/bin/qemu-riscv64-static.

Yes, it does.  Otherwise, you would need to copy the binfmt handler to every
chroot, just like you had to until recently.  But with new kernels and new
qemu, the executable is opened the moment the binfmt is registered, making
it available even if the file is not accessible for a particular process.

This is usually very beneficial, but it indeed makes updating qemu a bit
tricky.  Easiest to just reboot.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢰⠒⠀⣿⡁ 10 people enter a bar: 1 who understands binary,
⢿⡄⠘⠷⠚⠋⠀ 1 who doesn't, D who prefer to write it as hex,
⠈⠳⣄⠀⠀⠀⠀ and 1 who narrowly avoided an off-by-one error.


Reply to: