<div dir="ltr">Followup:<br>Doing grub-install if the partition you install to isn't mounted at /boot produces a nonworking image.<div><a href="https://www.dropbox.com/s/74grf6t3hy5lp9t/disk%20diff.png?dl=0">https://www.dropbox.com/s/74grf6t3hy5lp9t/disk%20diff.png?dl=0</a> is the diff of the first few hundred lines of output from hexdump of a disk image that booted (because it was at /boot) and didn't.<br></div><div><br></div><div>So that's neat.</div><div><br></div><div>- Rich</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 9, 2023 at 12:45 PM Rich Ercolani <<a href="mailto:rincebrain@gmail.com">rincebrain@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Package: grub-ieee1275-bin<br>
Version: 2.06-7<br>
Severity: normal<br>
X-Debbugs-Cc: <a href="mailto:rincebrain@gmail.com" target="_blank">rincebrain@gmail.com</a><br>
<br>
Dear Maintainer,<br>
<br>
I decided enough was enough and finally went to migrate my Netra T1 from SILO to GRUB.<br>
<br>
So I installed grub2 2.06-7, went through the motions, did grub-install --skip-fs-probe --force /dev/sdb1 (/boot - well, a copy of the contents of it mounted there for the moment, the actual one is /dev/sda1...), rebooted...<br>
<br>
Executing last command: boot<br>
Boot device: disk1 File and args:<br>
GRUB Illegal Instruction<br>
ok <br>
<br>
Cute. So after some tampering and blanking and redoing the disk, it still failed the same way.<br>
<br>
I have another SPARC that's booting from GRUB fine, so I stole the disk image from it and tried booting from that, worked great.<br>
<br>
Checked, that machine was using 2.06-3. So I grub-installed 2.06-7 again to confirm it broke the same way, grabbed 2.06-3 from <a href="http://snapshot.debian.org" rel="noreferrer" target="_blank">snapshot.debian.org</a>, installed it, and did the aforementioned grub-install dance...and it boots great.<br>
<br>
- Rich<br>
<br>
-- Package-specific info:<br>
<br>
*********************** BEGIN /proc/mounts<br>
/dev/mapper/ogami--vgnew-newroot / xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0<br>
/dev/sda1 /boot ext4 rw,relatime,errors=remount-ro 0 0<br>
*********************** END /proc/mounts<br>
<br>
*********************** BEGIN /boot/grub/grub.cfg<br>
#<br>
# DO NOT EDIT THIS FILE<br>
#<br>
# It is automatically generated by grub-mkconfig using templates<br>
# from /etc/grub.d and settings from /etc/default/grub<br>
#<br>
<br>
### BEGIN /etc/grub.d/00_header ###<br>
if [ -s $prefix/grubenv ]; then<br>
set have_grubenv=true<br>
load_env<br>
fi<br>
if [ "${next_entry}" ] ; then<br>
set default="${next_entry}"<br>
set next_entry=<br>
save_env next_entry<br>
set boot_once=true<br>
else<br>
set default="0"<br>
fi<br>
<br>
if [ x"${feature_menuentry_id}" = xy ]; then<br>
menuentry_id_option="--id"<br>
else<br>
menuentry_id_option=""<br>
fi<br>
<br>
export menuentry_id_option<br>
<br>
if [ "${prev_saved_entry}" ]; then<br>
set saved_entry="${prev_saved_entry}"<br>
save_env saved_entry<br>
set prev_saved_entry=<br>
save_env prev_saved_entry<br>
set boot_once=true<br>
fi<br>
<br>
function savedefault {<br>
if [ -z "${boot_once}" ]; then<br>
saved_entry="${chosen}"<br>
save_env saved_entry<br>
fi<br>
}<br>
function load_video {<br>
if [ x$feature_all_video_module = xy ]; then<br>
insmod all_video<br>
else<br>
insmod efi_gop<br>
insmod efi_uga<br>
insmod ieee1275_fb<br>
insmod vbe<br>
insmod vga<br>
insmod video_bochs<br>
insmod video_cirrus<br>
fi<br>
}<br>
<br>
if [ x$feature_default_font_path = xy ] ; then<br>
font=unicode<br>
else<br>
insmod part_sun<br>
insmod part_sun<br>
insmod lvm<br>
insmod xfs<br>
set root='lvmid/x0ezap-Oaqe-VVmf-PtRs-0aQk-hWN4-XJx5vi/Kqfrwr-7OFw-qaTA-R91O-6iLJ-lQDB-TToQaj'<br>
if [ x$feature_platform_search_hint = xy ]; then<br>
search --no-floppy --fs-uuid --set=root --hint='lvmid/x0ezap-Oaqe-VVmf-PtRs-0aQk-hWN4-XJx5vi/Kqfrwr-7OFw-qaTA-R91O-6iLJ-lQDB-TToQaj' ef48c129-1368-4b94-b7a8-fc40302d2179<br>
else<br>
search --no-floppy --fs-uuid --set=root ef48c129-1368-4b94-b7a8-fc40302d2179<br>
fi<br>
font="/usr/share/grub/unicode.pf2"<br>
fi<br>
<br>
if loadfont $font ; then<br>
set gfxmode=auto<br>
load_video<br>
insmod gfxterm<br>
set locale_dir=$prefix/locale<br>
set lang=en_US<br>
insmod gettext<br>
fi<br>
terminal_output gfxterm<br>
if [ "${recordfail}" = 1 ] ; then<br>
set timeout=30<br>
else<br>
if [ x$feature_timeout_style = xy ] ; then<br>
set timeout_style=menu<br>
set timeout=5<br>
# Fallback normal timeout code in case the timeout_style feature is<br>
# unavailable.<br>
else<br>
set timeout=5<br>
fi<br>
fi<br>
### END /etc/grub.d/00_header ###<br>
<br>
### BEGIN /etc/grub.d/05_debian_theme ###<br>
set menu_color_normal=cyan/blue<br>
set menu_color_highlight=white/blue<br>
### END /etc/grub.d/05_debian_theme ###<br>
<br>
### BEGIN /etc/grub.d/10_linux ###<br>
function gfxmode {<br>
set gfxpayload="${1}"<br>
}<br>
set linux_gfx_mode=<br>
export linux_gfx_mode<br>
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ef48c129-1368-4b94-b7a8-fc40302d2179' {<br>
load_video<br>
insmod gzio<br>
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi<br>
insmod part_sun<br>
insmod ext2<br>
set root='hd0,sun1'<br>
if [ x$feature_platform_search_hint = xy ]; then<br>
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//pci@1f\,0/pci@1\,1/scsi@2/disk@0\,0,sun1' --hint-bios=hd0,sun1 --hint-efi=hd0,sun1 --hint-baremetal=ahci0,sun1 f8017784-364b-442c-943d-e19fb5d1b7e5<br>
else<br>
search --no-floppy --fs-uuid --set=root f8017784-364b-442c-943d-e19fb5d1b7e5<br>
fi<br>
echo 'Loading Linux 5.10.0-8-sparc64 ...'<br>
linux /vmlinux-5.10.0-8-sparc64 root=/dev/mapper/ogami--vgnew-newroot ro quiet<br>
echo 'Loading initial ramdisk ...'<br>
initrd /initrd.img-5.10.0-8-sparc64<br>
}<br>
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-ef48c129-1368-4b94-b7a8-fc40302d2179' {<br>
menuentry 'Debian GNU/Linux, with Linux 5.10.0-8-sparc64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-8-sparc64-advanced-ef48c129-1368-4b94-b7a8-fc40302d2179' {<br>
load_video<br>
insmod gzio<br>
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi<br>
insmod part_sun<br>
insmod ext2<br>
set root='hd0,sun1'<br>
if [ x$feature_platform_search_hint = xy ]; then<br>
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//pci@1f\,0/pci@1\,1/scsi@2/disk@0\,0,sun1' --hint-bios=hd0,sun1 --hint-efi=hd0,sun1 --hint-baremetal=ahci0,sun1 f8017784-364b-442c-943d-e19fb5d1b7e5<br>
else<br>
search --no-floppy --fs-uuid --set=root f8017784-364b-442c-943d-e19fb5d1b7e5<br>
fi<br>
echo 'Loading Linux 5.10.0-8-sparc64 ...'<br>
linux /vmlinux-5.10.0-8-sparc64 root=/dev/mapper/ogami--vgnew-newroot ro quiet<br>
echo 'Loading initial ramdisk ...'<br>
initrd /initrd.img-5.10.0-8-sparc64<br>
}<br>
menuentry 'Debian GNU/Linux, with Linux 5.10.0-8-sparc64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-8-sparc64-recovery-ef48c129-1368-4b94-b7a8-fc40302d2179' {<br>
load_video<br>
insmod gzio<br>
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi<br>
insmod part_sun<br>
insmod ext2<br>
set root='hd0,sun1'<br>
if [ x$feature_platform_search_hint = xy ]; then<br>
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//pci@1f\,0/pci@1\,1/scsi@2/disk@0\,0,sun1' --hint-bios=hd0,sun1 --hint-efi=hd0,sun1 --hint-baremetal=ahci0,sun1 f8017784-364b-442c-943d-e19fb5d1b7e5<br>
else<br>
search --no-floppy --fs-uuid --set=root f8017784-364b-442c-943d-e19fb5d1b7e5<br>
fi<br>
echo 'Loading Linux 5.10.0-8-sparc64 ...'<br>
linux /vmlinux-5.10.0-8-sparc64 root=/dev/mapper/ogami--vgnew-newroot ro single <br>
echo 'Loading initial ramdisk ...'<br>
initrd /initrd.img-5.10.0-8-sparc64<br>
}<br>
menuentry 'Debian GNU/Linux, with Linux 5.10.0-6-sparc64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-6-sparc64-advanced-ef48c129-1368-4b94-b7a8-fc40302d2179' {<br>
load_video<br>
insmod gzio<br>
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi<br>
insmod part_sun<br>
insmod ext2<br>
set root='hd0,sun1'<br>
if [ x$feature_platform_search_hint = xy ]; then<br>
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//pci@1f\,0/pci@1\,1/scsi@2/disk@0\,0,sun1' --hint-bios=hd0,sun1 --hint-efi=hd0,sun1 --hint-baremetal=ahci0,sun1 f8017784-364b-442c-943d-e19fb5d1b7e5<br>
else<br>
search --no-floppy --fs-uuid --set=root f8017784-364b-442c-943d-e19fb5d1b7e5<br>
fi<br>
echo 'Loading Linux 5.10.0-6-sparc64 ...'<br>
linux /vmlinux-5.10.0-6-sparc64 root=/dev/mapper/ogami--vgnew-newroot ro quiet<br>
echo 'Loading initial ramdisk ...'<br>
initrd /initrd.img-5.10.0-6-sparc64<br>
}<br>
menuentry 'Debian GNU/Linux, with Linux 5.10.0-6-sparc64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-6-sparc64-recovery-ef48c129-1368-4b94-b7a8-fc40302d2179' {<br>
load_video<br>
insmod gzio<br>
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi<br>
insmod part_sun<br>
insmod ext2<br>
set root='hd0,sun1'<br>
if [ x$feature_platform_search_hint = xy ]; then<br>
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//pci@1f\,0/pci@1\,1/scsi@2/disk@0\,0,sun1' --hint-bios=hd0,sun1 --hint-efi=hd0,sun1 --hint-baremetal=ahci0,sun1 f8017784-364b-442c-943d-e19fb5d1b7e5<br>
else<br>
search --no-floppy --fs-uuid --set=root f8017784-364b-442c-943d-e19fb5d1b7e5<br>
fi<br>
echo 'Loading Linux 5.10.0-6-sparc64 ...'<br>
linux /vmlinux-5.10.0-6-sparc64 root=/dev/mapper/ogami--vgnew-newroot ro single <br>
echo 'Loading initial ramdisk ...'<br>
initrd /initrd.img-5.10.0-6-sparc64<br>
}<br>
}<br>
<br>
### END /etc/grub.d/10_linux ###<br>
<br>
### BEGIN /etc/grub.d/20_linux_xen ###<br>
### END /etc/grub.d/20_linux_xen ###<br>
<br>
### BEGIN /etc/grub.d/30_os-prober ###<br>
### END /etc/grub.d/30_os-prober ###<br>
<br>
### BEGIN /etc/grub.d/30_uefi-firmware ###<br>
### END /etc/grub.d/30_uefi-firmware ###<br>
<br>
### BEGIN /etc/grub.d/40_custom ###<br>
# This file provides an easy way to add custom menu entries. Simply type the<br>
# menu entries you want to add after this comment. Be careful not to change<br>
# the 'exec tail' line above.<br>
### END /etc/grub.d/40_custom ###<br>
<br>
### BEGIN /etc/grub.d/41_custom ###<br>
if [ -f ${config_directory}/custom.cfg ]; then<br>
source ${config_directory}/custom.cfg<br>
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then<br>
source $prefix/custom.cfg<br>
fi<br>
### END /etc/grub.d/41_custom ###<br>
*********************** END /boot/grub/grub.cfg<br>
<br>
*********************** BEGIN /proc/mdstat<br>
Personalities : [raid6] [raid5] [raid4] [raid1] <br>
unused devices: <none><br>
*********************** END /proc/mdstat<br>
<br>
*********************** BEGIN /dev/disk/by-id<br>
total 0<br>
lrwxrwxrwx 1 root root 10 Jan 9 12:19 dm-name-ogami--vgnew-newroot -> ../../dm-9<br>
lrwxrwxrwx 1 root root 10 Jan 9 12:19 dm-name-ogami--vgnew-swap_1 -> ../../dm-4<br>
lrwxrwxrwx 1 root root 10 Jan 9 12:19 dm-uuid-LVM-x0ezapOaqeVVmfPtRs0aQkhWN4XJx5viKqfrwr7OFwqaTAR91O6iLJlQDBTToQaj -> ../../dm-9<br>
lrwxrwxrwx 1 root root 10 Jan 9 12:19 dm-uuid-LVM-x0ezapOaqeVVmfPtRs0aQkhWN4XJx5virWMLJhbLPYhkPzE0KBKNZryZdCBhJaMk -> ../../dm-4<br>
lrwxrwxrwx 1 root root 10 Jan 9 12:19 lvm-pv-uuid-3d3PVW-AjFH-BfNO-8lbN-jHCO-MhE9-DFjsgi -> ../../sda2<br>
lrwxrwxrwx 1 root root 10 Jan 9 12:19 lvm-pv-uuid-dCcCg7-mPfk-GwcV-0FHv-Otnz-c7bS-PwgiNI -> ../../sdb2<br>
lrwxrwxrwx 1 root root 9 Jan 9 12:19 scsi-SSEAGATE_ST373207LC_3KT07QSB00007527H004 -> ../../sdb<br>
lrwxrwxrwx 1 root root 10 Jan 9 12:19 scsi-SSEAGATE_ST373207LC_3KT07QSB00007527H004-part1 -> ../../sdb1<br>
lrwxrwxrwx 1 root root 10 Jan 9 12:19 scsi-SSEAGATE_ST373207LC_3KT07QSB00007527H004-part2 -> ../../sdb2<br>
lrwxrwxrwx 1 root root 9 Jan 9 12:19 scsi-SSEAGATE_ST373207LC_3KT09ECN00007527EGPM -> ../../sda<br>
lrwxrwxrwx 1 root root 10 Jan 9 12:19 scsi-SSEAGATE_ST373207LC_3KT09ECN00007527EGPM-part1 -> ../../sda1<br>
lrwxrwxrwx 1 root root 10 Jan 9 12:19 scsi-SSEAGATE_ST373207LC_3KT09ECN00007527EGPM-part2 -> ../../sda2<br>
*********************** END /dev/disk/by-id<br>
<br>
*********************** BEGIN /dev/disk/by-uuid<br>
total 0<br>
lrwxrwxrwx 1 root root 10 Jan 9 12:19 152a2514-c571-4e87-894d-ff665280cb1a -> ../../dm-4<br>
lrwxrwxrwx 1 root root 10 Jan 9 12:19 51d78cab-29e4-46f8-ba88-e9e78446e6f7 -> ../../sdb1<br>
lrwxrwxrwx 1 root root 10 Jan 9 12:19 ef48c129-1368-4b94-b7a8-fc40302d2179 -> ../../dm-9<br>
lrwxrwxrwx 1 root root 10 Jan 9 12:19 f8017784-364b-442c-943d-e19fb5d1b7e5 -> ../../sda1<br>
*********************** END /dev/disk/by-uuid<br>
<br>
-- System Information:<br>
Debian Release: bookworm/sid<br>
APT prefers unstable<br>
APT policy: (500, 'unstable')<br>
Architecture: sparc64<br>
<br>
Kernel: Linux 5.10.0-8-sparc64<br>
Kernel taint flags: TAINT_WARN, TAINT_UNSIGNED_MODULE<br>
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set<br>
Shell: /bin/sh linked to /usr/bin/dash<br>
Init: systemd (via /run/systemd/system)<br>
LSM: AppArmor: enabled<br>
<br>
Versions of packages grub-ieee1275-bin depends on:<br>
ii grub-common 2.06-7<br>
<br>
grub-ieee1275-bin recommends no packages.<br>
<br>
grub-ieee1275-bin suggests no packages.<br>
<br>
-- no debconf information<br>
</blockquote></div>