The officially official Devuan Forum!

You are not logged in.

#1 2023-09-05 14:29:27

nixer
Member
From: North Carolina, USA
Registered: 2016-11-30
Posts: 211  

grup-pc on ceres, bug introduced because of /usr/merge

I have a ceres mbr install (no efi) and I just did my daily update and got this error:

/usr/sbin/grub-mkconfig: 300: /etc/grub.d/25_bli: not found
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error ex
it status 127
Errors were encountered while processing:
grub-pc

An explanation can be found here from the developer, but to quote the last entry:

While this has been fixed upstream already, systems like yours are
also not supported anymore, since merged-usr is mandatory since
bookworm.

I'm going to set a fixed version in the future for the version
that includes the fix.

So, if you are running ceres, you might want to pin grub to what you have got and hold off on the update to version 2.12~rc1-7:

apt policy grub-pc
grub-pc:
  Installed: 2.12~rc1-7
  Candidate: 2.12~rc1-7
  Version table:
*** 2.12~rc1-7 500
        500 http://deb.devuan.org/merged ceres/main amd64 Packages
        100 /var/lib/dpkg/status

Offline

#2 2023-09-06 06:44:24

sangam
Member
Registered: 2023-09-06
Posts: 1  

Re: grup-pc on ceres, bug introduced because of /usr/merge

So it's not going to be fixed?
edit: isn't changing shebang of /etc/grub.d/25_bli to #!/bin/sh should fix this?

Last edited by sangam (2023-09-06 07:23:58)

Offline

#3 2023-09-06 14:06:04

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,486  

Re: grup-pc on ceres, bug introduced because of /usr/merge

Offline

#4 2023-09-07 13:05:49

nixer
Member
From: North Carolina, USA
Registered: 2016-11-30
Posts: 211  

Re: grup-pc on ceres, bug introduced because of /usr/merge

I don't think is it fixed in version 2.12~rc1-9 of grub-pc, which appeared in the repos yesterday:

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.4.0-4-amd64
Found initrd image: /boot/initrd.img-6.4.0-4-amd64
/usr/sbin/grub-mkconfig: 300: /etc/grub.d/25_bli: not found
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error ex
it status 127

apt policy grub-pc
grub-pc:
  Installed: 2.12~rc1-9

After the upgrade produced this error, I did a complete removal of grub with:

apt remove grub-common grub-pc grub-pc-bin grub2-common --purge

And then installed with:

apt install grub-common grub-pc grub-pc-bin grub2-common os-prober

And it still produced the error above.
/etc/grub.d/25_bli is there and it contains:

#!/usr/bin/sh
set -e

# <comments removed>

cat << EOF
if [ "\$grub_platform" = "efi" ]; then
  insmod bli
fi
EOF

lines #290-305 of /usr/sbin/grub-mkconfig are:

for i in "${grub_mkconfig_dir}"/* ; do
  case "$i" in
    # emacsen backup files. FIXME: support other editors
    *~) ;;
    # emacsen autosave files. FIXME: support other editors
    */\#*\#) ;;
    *)
      if grub_file_is_not_garbage "$i" && test -x "$i" ; then
        echo
        echo "### BEGIN $i ###"
        "$i"
        echo "### END $i ###"
      fi
    ;;
  esac
done

Thanks sangam:

isn't changing shebang of /etc/grub.d/25_bli to #!/bin/sh should fix this?

It sure did, and it installed without error after doing an "apt dist-upgrade"

This package will need to be edited after installing or updating, or rebuilt.

Offline

#5 2023-09-08 07:45:52

gg
Member
Registered: 2022-07-19
Posts: 3  

Re: grup-pc on ceres, bug introduced because of /usr/merge

The script is installed by grub-common, hence it possibly affects any flavor of grub.
I run in the same problem when upgrading grub-efi-amd64.
Note that my PC came with a pre-installed usr-merged Ubuntu, Then I moved to Debian and dpkg warned me that my system was not in accordance with the Debian policy to have separated /bin /sbin etc. and I was not guaranteed that any upgrade would have been safe.
So I used a scipt to revert my system to a non-merged one.
Now instead Bookworm follows a strict usr-merged policy sad
What to do? I think, anyway, it is time to discuss moving (or not) Devuan.

Offline

#6 2023-11-20 03:17:26

czeekaj
Member
Registered: 2019-06-12
Posts: 154  

Re: grup-pc on ceres, bug introduced because of /usr/merge

try

dpkg-fsys-usrunmess

Offline

Board footer