On Tue, Apr 20, 2021 at 07:30:52AM +0300, Andrei Borzenkov wrote:
On 20.04.2021 00:51, Olaf Hering wrote:
Am Mon, 12 Apr 2021 10:46:48 +0200 schrieb Ludwig Nussel
: One of the motivations for UsrMerge is to have all read-only parts of the operating system in /usr. The kernel packages install files in /boot though which isn't in line with that idea.
Meanwhile I think all the files below /boot are part of the same state that is supposed to be within the single to-be-snapshotted subvolume. As such the entire directory should be moved to /usr. What would be the benefit to duplicate files like vmlinuz-version, xen.gz or grub2/* out of /usr back to /boot?
/usr is supposed to contain pristine distribution content and be common to and identical for any system using this OS version. Initrd is specific to each system and generated at run time, so it obviously does not fit there. Unless intention is to switch to common giant initrd.
AFAIK we are using common giant initrd by default. You can change the content by making changes to settings in /etc, though. Which is the reason it is probably not fit for /usr. Having the ramdisk and the tekrnel in separate location will make the bootloader configuration needlessly convoluted so the only reasonable way to get sane bootloader configuration is to symlink or copy the kernel alongside the initrd. Thanks Michal