monogon-dev / monogon

The Monogon Monorepo. May contain traces of peanuts and a ✨pure Go Linux userland✨. Work in progress!
https://monogon.tech
Apache License 2.0
378 stars 8 forks source link

node: A/B update - activation mode kexec operation not permitted #259

Closed fionera closed 11 months ago

fionera commented 11 months ago

When using kexec to switch to the freshly installed bundle an error occurs.

Error: rpc error: code = Unavailable desc = error installing update: while kexec staging: while staging new kexec kernel: SYS_kexec_file_load(125, 126, console=ttyS0,115200 console=ttyS1,115200 console=tty0 quiet rootfstype=erofs init=/init loadpin.exclude=kexec-image dm-mod.create="rootfs,,,ro,0 1033360 verity 1 PARTLABEL=METROPOLIS-SYSTEM-B PARTLABEL=METROPOLIS-SYSTEM-B 4096 4096 129170 129170 sha256 0930d7ab0bd11fd015995b3706c927936cef294159c68850e0a407d77ecbc225 8bfd77422f44c44b659a5e467fd064ce9b2af16c3fc1cb62553b0b998a316092425f1613bd4d067f5b13d191a1d1262c775e9d4a12100730f00f0e8514cd7bd8" root=/dev/dm-0, 0) = operation not permitted
lorenz commented 11 months ago

Fixed in https://review.monogon.dev/c/monogon/+/2021, the reason it doesn't occur in tests is that LoadPin needs to have at least one load from a read-only partition before it engages, which doesn't occur in the tests.