You are not logged in.
Installation: Stretch installed using HoaS's debootsrap+chroot method, followed by the helium-dev netinstall script.
I don't know if this is intentional, but installing bunsen-images-extra has updated grub. The consequence is that manually added boot parameters for booting other partitions have been overwritten.
damo@helium:~$ sudo apt-get install bunsen-images-extra
[sudo] password for damo:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
bunsen-images-extra
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 90.2 MB of archives.
After this operation, 107 MB of additional disk space will be used.
Get:1 https://kelaino.bunsenlabs.org/~johnraff/debian helium/main amd64 bunsen-images-extra all 9.0-2 [90.2 MB]
Fetched 90.2 MB in 14s (6,014 kB/s)
Selecting previously unselected package bunsen-images-extra.
(Reading database ... 127844 files and directories currently installed.)
Preparing to unpack .../bunsen-images-extra_9.0-2_all.deb ...
Unpacking bunsen-images-extra (9.0-2) ...
Setting up bunsen-images-extra (9.0-2) ...
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-4.9.0-3-amd64
Found initrd image: /boot/initrd.img-4.9.0-3-amd64
Found Linux Mint 18 Sarah (18) on /dev/sda2
Found Debian GNU/Linux 9 (stretch) on /dev/sda5
Found Debian GNU/Linux 9 (stretch) on /dev/sda7
done
Last edited by damo (2017-07-04 19:25:37)
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
Can you boot that Linux Mint Sarah partition from GRUB, and did you have any ISO images setup to boot from the GRUB menu?
Real Men Use Linux
Offline
The problem is with the /dev/sda5 and /dev/sda7 Stretch partitions. I can boot them by manually adding the required boot parameters, or by adding them to the updated grub.cfg. I just wasn't expecting it after the package install!
Mint isn't a problem because it deals OK with my optimus graphics. I should have chmod -x'd /usr/bin/os-prober!
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
The problem is with the /dev/sda5 and /dev/sda7 Stretch partitions. I can boot them by manually adding the required boot parameters, or by adding them to the updated grub.cfg. I just wasn't expecting it after the package install!
Mint isn't a problem because it deals OK with my optimus graphics. I should have chmod -x'd /usr/bin/os-prober!
I agree there should been a sort of "script was modified by user" prompt by apt/dpkg and give you a list of options which one option that says something like "Keep existing file". If you had custom options you should have been offered that option to keep your existing grub config.
Real Men Use Linux
Offline
bunsen-images-extra is well-behaved and does nothing unusual with grub https://github.com/BunsenLabs/bunsen-im … a.postinst.
Changes to grub including custom boot entries MUST be entered in /etc/grub.d/4[01]_* (simplest way is probably to copy from grub.cfg and then just paste & modify there).
On my system there's /etc/grub.d/40_custom and 41_custom where the custom boot entries and boot parameters are placed. I don't think updates to grub touch those files (other than initial install or reinstall)
Real Men Use Linux
Offline
bunsen-images-extra is well-behaved and does nothing unusual with grub https://github.com/BunsenLabs/bunsen-im … a.postinst.
Changes to grub including custom boot entries MUST be entered in /etc/grub.d/4[01]_* (simplest way is probably to copy from grub.cfg and then just paste & modify there).
Is this what is triggering it in the postinst?
update-alternatives --install "$GRUB_ALT_LINK" desktop-grub "$i" 25
If this is the expected behaviour I will add "[NOTABUG]" to the thread title
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
^ The change of theme/image of Grub2 has always been with one
update-grub
connected. Otherwise it would not be visible.
So if the manually inserted parameters "changed", then they stood simply in the wrong file.
Offline
...
So if the manually inserted parameters "changed", then they stood simply in the wrong file.
I know, but it was a shortcut which I have now done in the proper manner
I was still suprised though, by an update-grub I wasn't anticipating
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
I was still suprised though, by an update-grub I wasn't anticipating
Such surprises I could so far "bypass" ]:D
When it is time (I guess in 10 years) my wife is happy, because I then the computer "give off" 8)
Offline
The bunsen-images-extra package has this section in it's postinst file:
if which update-grub > /dev/null ; then
sync
update-grub || true
fi
I would recommend uninstalling os-prober entirely; the "foreign" GRUB entries can be added to /etc/grub.d/40_custom, as already mentioned.
Be sure to point to /vmlinuz & /initrd.img (in your Mint and Debian systems) rather than the numbered images in /boot — the symlinks in the root directory will always be to the current kernel version and this removes the need to update the GRUB configuration when the kernel is upgraded in Mint or Debian.
Something like this should do the trick:
menuentry 'Mint' {
set root=(hd0,2)
linux /vmlinuz root=/dev/sda2 ro # add kernel parameters here
initrd /initrd.img
}
Offline
If you also have Windows on your system you can add its GRUB entry(s) to /etc/grub.d/40_custom as well.
Real Men Use Linux
Offline
The bunsen-images-extra package has this section in it's postinst file:
if which update-grub > /dev/null ; then sync update-grub || true fi
I would recommend uninstalling os-prober entirely; the "foreign" GRUB entries can be added to /etc/grub.d/40_custom, as already mentioned.
I have already put the menuentries in 40_custom (as recommended :8 ), but I have removed the exec bit from 30_os-prober. That was always the intention, but I hadn't got round to it!
Be sure to point to /vmlinuz & /initrd.img (in your Mint and Debian systems) rather than the numbered images in /boot — the symlinks in the root directory will always be to the current kernel version and this removes the need to update the GRUB configuration when the kernel is upgraded in Mint or Debian.
Something like this should do the trick:
menuentry 'Mint' { set root=(hd0,2) linux /vmlinuz root=/dev/sda2 ro # add kernel parameters here initrd /initrd.img }
Good point.
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
Not a bug but err, a feature ]:D
Real Men Use Linux
Offline
Not a bug but err, a feature
Yes.
bunsen-images-extra installs some alternative images which can be used as grub background, chosen via Debian alternatives. It's quite normal to do an update-grub when something has changed there - surely you'll see that happen at least when installing an upgraded kernel?
I would recommend uninstalling os-prober entirely
Why? Does it sometimes fail to detect every available system on the disk, or make errors? (It's always worked well for me.)
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
HoaS wrote:I would recommend uninstalling os-prober entirely
Why?
Because the OP wants to add different kernel parameters to each menu entry and this is only possible with /etc/grub.d/40_custom — if that file is used for all of the menu entries then all os-prober will do is create duplicate menu entries with incorrect kernel command line parameters.
To be clear: I am not advocating that all users should remove os-prober, I just think that it is serving no purpose in this particular setup.
Offline
^ah... understood.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
chmod -x on '30_os-prober' does the trick, without having to remove it.
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
^
My system looks e.s. so out
fdisk -l
Disk /dev/sda: 232,9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0009fef1
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 31541247 31539200 15G 83 Linux
/dev/sda2 31541248 488396799 456855552 217,9G 5 Extended
/dev/sda5 31543296 62222335 30679040 14,6G 82 Linux swap / Solaris
/dev/sda6 62224384 269068287 206843904 98,6G b W95 FAT32
/dev/sda7 269070336 290017279 20946944 10G 83 Linux
/dev/sda8 384696320 419389439 34693120 16,6G 83 Linux
/dev/sda9 * 419391488 440379391 20987904 10G 83 Linux
/dev/sda10 440381440 488396799 48015360 22,9G 83 Linux
/dev/sda11 290019328 384694271 94674944 45,1G 83 Linux
Partition table entries are not in disk order.
Disk /dev/sdb: 232,9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1d371d36
Device Boot Start End Sectors Size Id Type
/dev/sdb1 63 352562560 352562498 168,1G 7 HPFS/NTFS/exFAT
/dev/sdb2 352571373 488397167 135825795 64,8G 5 Extended
/dev/sdb5 * 352571392 383782911 31211520 14,9G 83 Linux
/dev/sdb6 383784960 488396799 104611840 49,9G b W95 FAT32
Main Bootloader is the grub of bunsenlab. Only here os-prober is active.
An update-grub takes about 3 minutes, 15 seconds.
Since I have two times siduction in the employment and here very often the kernel is changed, is the stressful.
Testwise I have my 40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry 'Chainload Mageia 6 (auf /dev/sda8)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
linux /boot/vmlinuz BOOT_IMAGE=linux root=UUID=aeac8153-a888-4389-b866-b1c72247c28a splash quiet noiswmd resume=UUID=045398f2-dfbc-4cc5-99c5-dca098051969 vga=788
initrd /boot/initrd.img
}
menuentry 'Chainload Paint It Black - lxde (2016.1" ) (auf /dev/sda10)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos10'
configfile /boot/grub/grub.cfg
}
menuentry 'Chainload 2017.1.0 patience (kde) (auf /dev/sda11)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos11'
configfile /boot/grub/grub.cfg
}
menuentry 'Chainload ROSA (lxqt) (auf /dev/sda7)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos7'
configfile /boot/grub2/grub.cfg
}
in
cp /etc/grub.d/40_custom /etc/grub.d/09_my_linux
copied and renamed. So my entries in the Grub selection menu are above and the 3Min15Sec are no longer interesting.
Offline
@unklar: you can move the insmod commands to before the menuentry stanzas to avoid having to call them in every entry, like this:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
insmod part_msdos
insmod ext2
menuentry 'Chainload Mageia 6 (auf /dev/sda8)' {
set root='hd0,msdos8'
linux /boot/vmlinuz BOOT_IMAGE=linux root=UUID=aeac8153-a888-4389-b866-b1c72247c28a splash quiet noiswmd resume=UUID=045398f2-dfbc-4cc5-99c5-dca098051969 vga=788
initrd /boot/initrd.img
}
menuentry 'Chainload Paint It Black - lxde (2016.1" ) (auf /dev/sda10)' {
set root='hd0,msdos10'
configfile /boot/grub/grub.cfg
}
menuentry 'Chainload 2017.1.0 patience (kde) (auf /dev/sda11)' {
set root='hd0,msdos11'
configfile /boot/grub/grub.cfg
}
menuentry 'Chainload ROSA (lxqt) (auf /dev/sda7)' {
set root='hd0,msdos7'
configfile /boot/grub2/grub.cfg
}
Also, I don't think you actaully need to call insmod at all (GRUB is pretty good at loading the modules automatically), have you tried leaving them out?
chmod -x on '30_os-prober' does the trick, without having to remove it.
...until the package is updated
Offline
^^ HoaS, you're right. The insmod entries are not more necessary. All systems start properly with the Bunsen-labs grub. Thanks for that.
damo wrote:chmod -x on '30_os-prober' does the trick, without having to remove it.
...until the package is updated
I can not confirm.
I've been working with the -x for over a year. The os-prober package has been updated several times.
Last edited by unklar (2017-07-06 07:54:56)
Offline