Open RomanValov opened 3 years ago
Hmm, FIoT should be fixed to do the same thing as FCOS and set the bootloader
backend https://github.com/coreos/coreos-assembler/blob/74f44afa3b50909ce2c3fda5a45a2c8bf2c12c94/src/create_disk.sh#L362 to none
(except on s390x).
Ah right I tried this at https://github.com/rhinstaller/anaconda/pull/2752
@cgwalters as I understand you suggest to disable bootloader config re-generation
But on the other hand is there a chance it will work correctly without disabling?
In other case I would probably do the bind mounts for dev/sys/proc before invocation of ostree admin deploy
. But the point with ostree admin deploy
is that it generates the deployment directory during it's run and makes chroot to that directory with no way to control the chroot
To be clear, the idea here is that at boot time, grub reads the /boot/loader
entries which ostree writes. We're still updating the GRUB configuration, we just aren't regenerating a grub-specific file to do so.
To use this, your GRUB needs the BLS patches, which Fedora at least ships.
GRUB still needs a config file to use BLS.
As I see the COSA uses pre-generated grub.cfg
.
Is that approach considered recommended way to go?
Yes, I strongly recommend the CoreOS setup for all ostree-based systems that use grub. Among other major benefits, it avoids invoking os-prober
.
Without hacking Anaconda today, you could probably do this post-build. There's also ongoing work on using osbuild for IoT I believe, and eventually osbuild/coreos-assembler will converge I hope.
Hello,
I would like to generate OSTree-driven disk images on my own and employ the functionality of
ostree admin deploy
command to update bootloader configuration, but it fails:I know I can skip bootloader configuration if I unlink
grub.cfg
file, but I wonder is there a way to workaround the issue?As I understand
ostree admin deploy
makes chroot to deployment directory, but there is no/dev
,/sys
or/proc
directory made available to makegrub2-mkconfig
work smoothly.