Re: Setting up /boot when it is not a separate partition
- From: Daniel Drake <drake endlessm com>
- To: ostree-list gnome org
- Subject: Re: Setting up /boot when it is not a separate partition
- Date: Mon, 20 Jul 2015 14:27:16 -0600
I also see the questionable paths in bootloader configs that Chris
points out, but I'm not too worried about that, the grub we are
running here seems to deal with that fine.
My issue is different - I'm now looking at ostree runtime behaviour.
_ostree_sysroot_read_boot_loader_configs() specifically looks at
$root/boot/loader.X/entries and $root defaults to /.
So it is expecting the boot configs available at /boot inside the deployment.
As they are not found, ostree decides that it is not running inside a
deployment.
On Mon, Jul 20, 2015 at 11:40 AM, Daniel Drake <drake endlessm com> wrote:
I wonder if it would be acceptable to modify ostree-prepare-root to
account for this. When preparing the root, if we find /boot/loader on
the real disk, automatically set up an appropriate bind mount inside
the deployment, so that /boot reflects at what I'm now seeing at
/sysroot/boot.
I implemented this:
https://gist.github.com/dsd/0de2ca533c66daa3a733
It's working fine. Is it an acceptable approach?
Thanks
Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]