NoPaste

Re: update-grub findet keinen neuen Kernel nach btrfs Snapshot Rollback

von KBDCALLS
SNIPPET_DESC:
https://debianforum.de/forum/posting.php?mode=edit&p=1344242
SNIPPET_CREATION_TIME:
08.11.2023 19:09:04
SNIPPET_PRUNE_TIME:
Unendlich

SNIPPET_TEXT:
  1. #
  2. # DO NOT EDIT THIS FILE
  3. #
  4. # It is automatically generated by grub-mkconfig using templates
  5. # from /etc/grub.d and settings from /etc/default/grub
  6. #
  7.  
  8. ### BEGIN /etc/grub.d/00_header ###
  9. if [ -s $prefix/grubenv ]; then
  10.   set have_grubenv=true
  11.   load_env
  12. fi
  13. if [ "${next_entry}" ] ; then
  14.    set default="${next_entry}"
  15.    set next_entry=
  16.    save_env next_entry
  17.    set boot_once=true
  18. else
  19.    set default="0"
  20. fi
  21.  
  22. if [ x"${feature_menuentry_id}" = xy ]; then
  23.   menuentry_id_option="--id"
  24. else
  25.   menuentry_id_option=""
  26. fi
  27.  
  28. export menuentry_id_option
  29.  
  30. if [ "${prev_saved_entry}" ]; then
  31.   set saved_entry="${prev_saved_entry}"
  32.   save_env saved_entry
  33.   set prev_saved_entry=
  34.   save_env prev_saved_entry
  35.   set boot_once=true
  36. fi
  37.  
  38. function savedefault {
  39.   if [ -z "${boot_once}" ]; then
  40.     saved_entry="${chosen}"
  41.     save_env saved_entry
  42.   fi
  43. }
  44. function load_video {
  45.   if [ x$feature_all_video_module = xy ]; then
  46.     insmod all_video
  47.   else
  48.     insmod efi_gop
  49.     insmod efi_uga
  50.     insmod ieee1275_fb
  51.     insmod vbe
  52.     insmod vga
  53.     insmod video_bochs
  54.     insmod video_cirrus
  55.   fi
  56. }
  57.  
  58. if [ x$feature_default_font_path = xy ] ; then
  59.    font=unicode
  60. else
  61. insmod part_msdos
  62. insmod btrfs
  63. search --no-floppy --fs-uuid --set=root c7583005-6af7-4437-95a9-963f25f4cb28
  64.     font="/@snapshots/278/snapshot/usr/share/grub/unicode.pf2"
  65. fi
  66.  
  67. if loadfont $font ; then
  68.   set gfxmode=1920x1080,1280x1024,1280x800,1280x720,1024x768,800x600,text
  69.   load_video
  70.   insmod gfxterm
  71.   set locale_dir=$prefix/locale
  72.   set lang=de_DE
  73.   insmod gettext
  74. fi
  75. terminal_output gfxterm
  76. insmod part_msdos
  77. insmod btrfs
  78. search --no-floppy --fs-uuid --set=root c7583005-6af7-4437-95a9-963f25f4cb28
  79. insmod gfxmenu
  80. insmod png
  81. set theme=($root)/@snapshots/278/snapshot/usr/share/grub/themes/mow/theme.txt
  82. export theme
  83. if [ "${recordfail}" = 1 ] ; then
  84.   set timeout=30
  85. else
  86.   if [ x$feature_timeout_style = xy ] ; then
  87.     set timeout_style=menu
  88.     set timeout=5
  89.   # Fallback normal timeout code in case the timeout_style feature is
  90.   # unavailable.
  91.   else
  92.     set timeout=5
  93.   fi
  94. fi
  95. ### END /etc/grub.d/00_header ###
  96.  
  97. ### BEGIN /etc/grub.d/05_debian_theme ###
  98. set menu_color_normal=cyan/blue
  99. set menu_color_highlight=white/blue
  100. ### END /etc/grub.d/05_debian_theme ###
  101.  
  102. ### BEGIN /etc/grub.d/09_siduction-btrfs ###
  103. function gfxmode {
  104.         set gfxpayload="${1}"
  105. }
  106. set linux_gfx_mode=keep
  107. export linux_gfx_mode
  108. menuentry 'siduction 2022.1.0 Masters of War GNU/Linux snapshot 278, with Linux 6.5.10-1-siduction-amd64' --class siduction --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.5.10-1-siduction-amd64-advanced-c7583005-6af7-4437-95a9-963f25f4cb28' {
  109.         load_video
  110.         gfxmode $linux_gfx_mode
  111.         insmod gzio
  112.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  113.         insmod part_msdos
  114.         insmod btrfs
  115.         search --no-floppy --fs-uuid --set=root c7583005-6af7-4437-95a9-963f25f4cb28
  116.         echo    'Loading Linux 6.5.10-1-siduction-amd64 ...'
  117.         linux   /@snapshots/278/snapshot/boot/vmlinuz-6.5.10-1-siduction-amd64 root=UUID=c7583005-6af7-4437-95a9-963f25f4cb28 ro rootflags=subvol=@snapshots/278/snapshot  quiet resume=UUID=c672b925-5b99-4cea-a1d9-b913d0cee63a systemd.show_status=1 nvidia-drm.modeset=1
  118.         echo    'Loading initial ramdisk ...'
  119.         initrd  /@snapshots/278/snapshot/boot/initrd.img-6.5.10-1-siduction-amd64
  120. }
  121. menuentry 'siduction 2022.1.0 Masters of War GNU/Linux snapshot 278, with Linux 6.5.9-1-siduction-amd64' --class siduction --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.5.9-1-siduction-amd64-advanced-c7583005-6af7-4437-95a9-963f25f4cb28' {
  122.         load_video
  123.         gfxmode $linux_gfx_mode
  124.         insmod gzio
  125.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  126.         insmod part_msdos
  127.         insmod btrfs
  128.         search --no-floppy --fs-uuid --set=root c7583005-6af7-4437-95a9-963f25f4cb28
  129.         echo    'Loading Linux 6.5.9-1-siduction-amd64 ...'
  130.         linux   /@snapshots/278/snapshot/boot/vmlinuz-6.5.9-1-siduction-amd64 root=UUID=c7583005-6af7-4437-95a9-963f25f4cb28 ro rootflags=subvol=@snapshots/278/snapshot  quiet resume=UUID=c672b925-5b99-4cea-a1d9-b913d0cee63a systemd.show_status=1 nvidia-drm.modeset=1
  131.         echo    'Loading initial ramdisk ...'
  132.         initrd  /@snapshots/278/snapshot/boot/initrd.img-6.5.9-1-siduction-amd64
  133. }
  134. menuentry 'siduction 2022.1.0 Masters of War GNU/Linux snapshot 278, with Linux 6.5.8-1-siduction-amd64' --class siduction --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.5.8-1-siduction-amd64-advanced-c7583005-6af7-4437-95a9-963f25f4cb28' {
  135.         load_video
  136.         gfxmode $linux_gfx_mode
  137.         insmod gzio
  138.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  139.         insmod part_msdos
  140.         insmod btrfs
  141.         search --no-floppy --fs-uuid --set=root c7583005-6af7-4437-95a9-963f25f4cb28
  142.         echo    'Loading Linux 6.5.8-1-siduction-amd64 ...'
  143.         linux   /@snapshots/278/snapshot/boot/vmlinuz-6.5.8-1-siduction-amd64 root=UUID=c7583005-6af7-4437-95a9-963f25f4cb28 ro rootflags=subvol=@snapshots/278/snapshot  quiet resume=UUID=c672b925-5b99-4cea-a1d9-b913d0cee63a systemd.show_status=1 nvidia-drm.modeset=1
  144.         echo    'Loading initial ramdisk ...'
  145.         initrd  /@snapshots/278/snapshot/boot/initrd.img-6.5.8-1-siduction-amd64
  146. }
  147. menuentry 'siduction 2022.1.0 Masters of War GNU/Linux snapshot 278, with Linux 6.5.7-1-siduction-amd64' --class siduction --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.5.7-1-siduction-amd64-advanced-c7583005-6af7-4437-95a9-963f25f4cb28' {
  148.         load_video
  149.         gfxmode $linux_gfx_mode
  150.         insmod gzio
  151.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  152.         insmod part_msdos
  153.         insmod btrfs
  154.         search --no-floppy --fs-uuid --set=root c7583005-6af7-4437-95a9-963f25f4cb28
  155.         echo    'Loading Linux 6.5.7-1-siduction-amd64 ...'
  156.         linux   /@snapshots/278/snapshot/boot/vmlinuz-6.5.7-1-siduction-amd64 root=UUID=c7583005-6af7-4437-95a9-963f25f4cb28 ro rootflags=subvol=@snapshots/278/snapshot  quiet resume=UUID=c672b925-5b99-4cea-a1d9-b913d0cee63a systemd.show_status=1 nvidia-drm.modeset=1
  157.         echo    'Loading initial ramdisk ...'
  158.         initrd  /@snapshots/278/snapshot/boot/initrd.img-6.5.7-1-siduction-amd64
  159. }
  160.  
  161. ### END /etc/grub.d/09_siduction-btrfs ###
  162.  
  163. ### BEGIN /etc/grub.d/20_linux_xen ###
  164. ### END /etc/grub.d/20_linux_xen ###
  165.  
  166. ### BEGIN /etc/grub.d/20_memtest86+ ###
  167. menuentry "Memory test (memtest86+x64.bin)" --class memtest $menuentry_id_option 'memtest86+' {
  168.         insmod part_msdos
  169.         insmod btrfs
  170.         search --no-floppy --fs-uuid --set=root c7583005-6af7-4437-95a9-963f25f4cb28
  171.         linux    /@snapshots/278/snapshot/boot/memtest86+x64.bin
  172. }
  173. menuentry 'Memory test (memtest86+x64.bin, serial console)' --class memtest $menuentry_id_option 'memtest86+-serial' {
  174.         insmod part_msdos
  175.         insmod btrfs
  176.         search --no-floppy --fs-uuid --set=root c7583005-6af7-4437-95a9-963f25f4cb28
  177.         linux    /@snapshots/278/snapshot/boot/memtest86+x64.bin console=ttyS0,115200
  178. }
  179. ### END /etc/grub.d/20_memtest86+ ###
  180.  
  181. ### BEGIN /etc/grub.d/25_bli ###
  182. if [ "$grub_platform" = "efi" ]; then
  183.   insmod bli
  184. fi
  185. ### END /etc/grub.d/25_bli ###
  186.  
  187. ### BEGIN /etc/grub.d/30_os-prober ###
  188. ### END /etc/grub.d/30_os-prober ###
  189.  
  190. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  191. if [ "$grub_platform" = "efi" ]; then
  192.         fwsetup --is-supported
  193.         if [ "$?" = 0 ]; then
  194.                 menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
  195.                         fwsetup
  196.                 }
  197.         fi
  198. fi
  199. ### END /etc/grub.d/30_uefi-firmware ###
  200.  
  201. ### BEGIN /etc/grub.d/35_fwupd ###
  202. ### END /etc/grub.d/35_fwupd ###
  203.  
  204. ### BEGIN /etc/grub.d/40_custom ###
  205. # This file provides an easy way to add custom menu entries.  Simply type the
  206. # menu entries you want to add after this comment.  Be careful not to change
  207. # the 'exec tail' line above.
  208. ### END /etc/grub.d/40_custom ###
  209.  
  210. ### BEGIN /etc/grub.d/41_custom ###
  211. if [ -f  ${config_directory}/custom.cfg ]; then
  212.   source ${config_directory}/custom.cfg
  213. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  214.   source $prefix/custom.cfg
  215. fi
  216. ### END /etc/grub.d/41_custom ###
  217.  
  218. ### BEGIN /etc/grub.d/41_snapshots-btrfs ###
  219. submenu 'siduction snapshots' {
  220.     configfile "${prefix}/grub-btrfs.cfg"
  221. }
  222. ### END /etc/grub.d/41_snapshots-btrfs ###

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN