чување b37bd6cac81c65f609a048c208cbc9c6081a3a39
родитељ b1bf33e3c010a0382cc329758370c997ec1c3854
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Tue, 12 Sep 2023 19:36:48 +0200
booting.howto: Add information on skipping os-prober and blkid instead of lsblk
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 1, додавања: 42(+), брисања: 0(-)
diff --git a/booting.howto b/booting.howto
@@ -125,6 +125,19 @@ command
$ lsblk -no PARTUUID /dev/sda2
+Alternatively, if that produces no output or output consisting of just
+whitespace, the following command can be used:
+
+ $ blkid /dev/sda2 |
+ awk 'BEGIN { FS="="; RS=" " }
+ {
+ if ($1=="PARTUUID")
+ {
+ gsub(/["\n]/, "");
+ print $2
+ }
+ }'
+
NVME SSDs require the nvme and nvme_core kernel modules, and the partition
device pathnames usually become /dev/nvme0n1p1 and /dev/nvme0n1p2, respectively:
@@ -209,6 +222,35 @@ since it will be automatically generated by fallback shim whenever you choose to
boot from the Galeb USB medium.
+Multi-booting
+-------------
+
+If you are using Galeb with other distributions which are using GRUB, and in
+particular GRUB's os-prober, you might want to add an exception to
+/etc/default/grub so a new menu item for Galeb's partition doesn't get added
+by os-prober every time there is a kernel update. First, take note of the UUID
+of the partition where Galeb is installed:
+
+ # GALEB_PART=/dev/sda2
+ # GALEB_UUID=$(blkid $GALEB_PART |
+ awk 'BEGIN { FS="="; RS=" " }
+ {
+ if ($1=="UUID")
+ {
+ gsub(/["\n]/, "");
+ print $2
+ }
+ }')
+
+then append it to /etc/default/grub in your other distro:
+
+ # cat <<! >> /etc/default/grub
+ GRUB_OS_PROBER_SKIP_LIST=$GALEB_UUID@$GALEB_PART
+ !
+
+You should then regenerate GRUB's configuration file in your distro.
+
+
See also
--------