Closed psfloyd closed 3 years ago
So, it did generate a new snapshot, modify its fstab file but it did not create a new config file for the generated boot stanza nor did it include that file in the refind-main.conf file? Alright, I'll have to reproduce that locally and debug it, I guess.
What's interesting is that the output simply stops after the "Deleting the..." line without an error or something.
I remember that this scenario worked well, initially, but later changes might have broken that functionality (that is, included config support).
I think i have found a bug. For the tool to work properly the manual stanza that it searches must be on the main config file (the one specified in
/etc/refind-btrfs.conf
). If the stanzas are in a file that is included (using refind'sinclude
token), then the tool does not generate the necesary files underbtrfs-snapshot-stanzas
and does not moidify the main config file.I leave an example of this behavior below. I have created 2 files to isolate the issue
refind-main.conf
andrefind-stanzas.conf
in the ESP mount and pointedrefind-btrfs
to the main file.Situation 1: stanza in main config file, working properly
In this situation the tool created the files in the
btrfs-snapshot-stanzas
subdirectory and appended theinclude btrfs-snapshot-stanzas/kstar-root_vmlinuz-linux.conf
line.Main config:
Included config:
Output of
refind-btrfs
Situation 2: stanza is in an included config file, not working
In this situation the tool did not create any files or subdirectories and did not add any lines to the main config file.
Main config:
Included config:
Output of
refind-btrfs