Bug#989645: /usr/sbin/grub-mkconfig: dpkg: error processing package linux-image-powerpc (--configure):

2021-06-09 Thread Colin Watson
On Wed, Jun 09, 2021 at 02:34:06PM -0700, Rick Thomas wrote:
> You're right that /boot/grub somehow has gotten read-only.  I didn't
> do that myself, so something else must have done that.  Have you any
> clue you can share with me as to which package I should re-file this
> report against?

I'm afraid I have no idea.  You might find something of use in syslog or
dmesg?

-- 
Colin Watson (he/him)  [cjwat...@debian.org]



Bug#989645: /usr/sbin/grub-mkconfig: dpkg: error processing package linux-image-powerpc (--configure):

2021-06-09 Thread Rick Thomas



On Wed, Jun 9, 2021, at 3:15 AM, John Paul Adrian Glaubitz wrote:
> Control: severity -1 normal
> 
> Hello Rick!
> 
> On 6/9/21 11:15 AM, Rick Thomas wrote:
> > Package: grub-common
> > Version: 2.04-18
> > Severity: grave
> > File: /usr/sbin/grub-mkconfig
> > Justification: renders package unusable
> 
> Since powerpc is not a release architecture, setting the severity to 
> "grave" is not
> allowed here. I am therefore downgrading this to "normal".
> 

Got it.  Thanks for the info!

> > This is what happens when I attempt to do "aptitude full-upgrade" on my 
> > PowerPC machine:
> > 
> > root@dillserver:/home/rbthomas# aptitude full-upgrade
> > The following partially installed packages will be configured:
> >   linux-image-5.10.0-7-powerpc linux-image-powerpc 
> > No packages will be installed, upgraded, or removed.
> > 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> > Need to get 0 B of archives. After unpacking 0 B will be used.
> > Setting up linux-image-5.10.0-7-powerpc (5.10.40-1) ...
> > /etc/kernel/postinst.d/initramfs-tools:
> > update-initramfs: Generating /boot/initrd.img-5.10.0-7-powerpc
> > /etc/kernel/postinst.d/zz-update-grub:
> > /usr/sbin/grub-mkconfig: 257: cannot create /boot/grub/grub.cfg.new: 
> > Read-only file system
> 
> Your HFS filesystem on /boot/grub is read-only. This is not related to GRUB 
> but
> to either your custom environment or something in the partitioning setup in 
> d-i
> that I need to fix.
> 
> Adrian

This happened on two machines (a G5 Mac and a G4 Mac), both of which were 
originally installed from the respective NETINST-1 iso from 2021-02-02.  For 
specificity, here are the checksums of the iso images:

9745c507771d6066546146c3d33755ac3b1ca0d4d489647d6a07da38c9612bfc  
debian-10.0.0-powerpc-NETINST-1.iso
cf357436e812b50ee8c381abf61c0f7ff634c5bdfd18f4ea8b55a4230a657f00  
debian-10.0.0-ppc64-NETINST-1.iso

I have run occasional (roughly weekly) "aptitude update ; aptitude 
full-upgrade" on each of them since installation.

I did nothing to affect the read-write-ability of /boot/grub on either of them. 
 So I'm guessing this is a bug you need to fix?

What can I do to help?  (Both of these machines exist at the moment solely to 
assist in testing your efforts, so I would have no problem re-installing either 
or both if that would help.)

Thanks for all your work!
Rick



Bug#989645: /usr/sbin/grub-mkconfig: dpkg: error processing package linux-image-powerpc (--configure):

2021-06-09 Thread John Paul Adrian Glaubitz
Control: severity -1 normal

Hello Rick!

On 6/9/21 11:15 AM, Rick Thomas wrote:
> Package: grub-common
> Version: 2.04-18
> Severity: grave
> File: /usr/sbin/grub-mkconfig
> Justification: renders package unusable

Since powerpc is not a release architecture, setting the severity to "grave" is 
not
allowed here. I am therefore downgrading this to "normal".

> This is what happens when I attempt to do "aptitude full-upgrade" on my 
> PowerPC machine:
> 
> root@dillserver:/home/rbthomas# aptitude full-upgrade
> The following partially installed packages will be configured:
>   linux-image-5.10.0-7-powerpc linux-image-powerpc 
> No packages will be installed, upgraded, or removed.
> 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> Need to get 0 B of archives. After unpacking 0 B will be used.
> Setting up linux-image-5.10.0-7-powerpc (5.10.40-1) ...
> /etc/kernel/postinst.d/initramfs-tools:
> update-initramfs: Generating /boot/initrd.img-5.10.0-7-powerpc
> /etc/kernel/postinst.d/zz-update-grub:
> /usr/sbin/grub-mkconfig: 257: cannot create /boot/grub/grub.cfg.new: 
> Read-only file system

Your HFS filesystem on /boot/grub is read-only. This is not related to GRUB but
to either your custom environment or something in the partitioning setup in d-i
that I need to fix.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Bug#989645: /usr/sbin/grub-mkconfig: dpkg: error processing package linux-image-powerpc (--configure):

2021-06-09 Thread Rick Thomas
Package: grub-common
Version: 2.04-18
Severity: grave
File: /usr/sbin/grub-mkconfig
Justification: renders package unusable
X-Debbugs-Cc: debian-powe...@lists.debian.org, glaub...@physik.fu-berlin.de, 
rbtho...@pobox.com

This is what happens when I attempt to do "aptitude full-upgrade" on my PowerPC 
machine:

root@dillserver:/home/rbthomas# aptitude full-upgrade
The following partially installed packages will be configured:
  linux-image-5.10.0-7-powerpc linux-image-powerpc 
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up linux-image-5.10.0-7-powerpc (5.10.40-1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.10.0-7-powerpc
/etc/kernel/postinst.d/zz-update-grub:
/usr/sbin/grub-mkconfig: 257: cannot create /boot/grub/grub.cfg.new: Read-only 
file system
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
dpkg: error processing package linux-image-5.10.0-7-powerpc (--configure):
 installed linux-image-5.10.0-7-powerpc package post-installation script 
subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-powerpc:
 linux-image-powerpc depends on linux-image-5.10.0-7-powerpc (= 5.10.40-1); 
however:
  Package linux-image-5.10.0-7-powerpc is not configured yet.

dpkg: error processing package linux-image-powerpc (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-5.10.0-7-powerpc
 linux-image-powerpc
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up linux-image-5.10.0-7-powerpc (5.10.40-1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.10.0-7-powerpc
/etc/kernel/postinst.d/zz-update-grub:
/usr/sbin/grub-mkconfig: 257: cannot create /boot/grub/grub.cfg.new: Read-only 
file system
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
dpkg: error processing package linux-image-5.10.0-7-powerpc (--configure):
 installed linux-image-5.10.0-7-powerpc package post-installation script 
subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-powerpc:
 linux-image-powerpc depends on linux-image-5.10.0-7-powerpc (= 5.10.40-1); 
however:
  Package linux-image-5.10.0-7-powerpc is not configured yet.

dpkg: error processing package linux-image-powerpc (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-5.10.0-7-powerpc
 linux-image-powerpc
 
-- Package-specific info:

*** BEGIN /proc/mounts
/dev/mapper/dill-root / ext4 rw,relatime,errors=remount-ro 0 0
/dev/mapper/dill-home /home ext4 rw,relatime 0 0
/dev/sda3 /boot ext2 rw,relatime 0 0
/dev/sda2 /boot/grub hfs ro,relatime,uid=0,gid=0 0 0
*** END /proc/mounts

*** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
insmod all_video
  else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_apple
insmod lvm
insmod ext2
set 
root='lvmid/KyeuOm-Fceg-PCoI-LcmV-eVLL-RnL7-Xh0WT4/Ut9qE2-72vC-tTDE-XyVH-6Z0i-GXy3-lyyiCh'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root 
--hint='lvmid/KyeuOm-Fceg-PCoI-LcmV-eVLL-RnL7-Xh0WT4/Ut9qE2-72vC-tTDE-XyVH-6Z0i-GXy3-lyyiCh'
  9151f254-2918-4435-bd1c-9a0e70edfdf7
else
  search --no-floppy --fs-uuid --set=root 9151f254-2918-4435-bd1c-9a0e70edfdf7
fi
font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
set