mateosss / matter

Customizable GRUB theme inspired by Material Design
Boost Software License 1.0
865 stars 50 forks source link

Fails on Fedora SilverBlue / Project BlueFin / Immutable #83

Open StudioLE opened 2 weeks ago

StudioLE commented 2 weeks ago

Tried running ./matter.py on Project BlueFin but it fails as /usr/sbin is read-only

[I] Prepare installation directory
[I] Clean install directory
[I] Copy built theme to installation directory
[I] Patch /etc/default/grub with Matter Theme Overrides
[I] Begin /boot/grub2/grub.cfg patch
[I] 11 icons successfully patched onto /boot/grub2/grub.cfg
[I] Begin /usr/sbin/grub2-mkconfig patch
[I] Clean old /usr/sbin/grub2-mkconfig patch if any
Traceback (most recent call last):
  File "/var/home/**USER**/matter/./matter.py", line 876, in <module>
    do_install()
  File "/var/home/**USER**/matter/./matter.py", line 548, in do_install
    do_set_icons(patch_grubcfg=True)
  File "/var/home/**USER**/matter/./matter.py", line 693, in do_set_icons
    with open(GRUB_MKCONFIG_PATH, "w") as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 30] Read-only file system: '/usr/sbin/grub2-mkconfig'
heyzec commented 2 weeks ago

Not too familiar with BlueFin OS, but since it is container-based looks like it mounts /usr/sbin/ as readonly, so patching grub2-mkconfig is not really possible.

Ignoring the error, have the grub changes been applied?

StudioLE commented 2 weeks ago

I believe it was able to modify /etc/default/grub sucessfully but didn't check as I was concerned about grub being broken. I ran ./matter.py -u which I believe was able to remove the changes to /etc/default/grub but again failed on opening /usr/sbin/grub2-mkconfig

heyzec commented 2 weeks ago

If you're concerned about the error you can try running it again with the --seticons_once flag.