Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

(résolu) update grub edit for Meltdown and Spectre

Forum français des utilisateurs Mepis
Post Reply
Message
Author
tradonal
Forum Novice
Forum  Novice
Posts: 76
Joined: Mon Sep 25, 2017 11:43 am

(résolu) update grub edit for Meltdown and Spectre

#1 Post by tradonal » Sat Mar 03, 2018 12:47 pm

hello,
grub2 est installé dans le mbr et quand j'installe une distribution pour l'essayer je choisis tjs de ne pas installé grub.
J'utilise donc un seul grub ....
avant j'avais ceci

Code: Select all

 # ls
00_header        10_linux      20_memtest86+  30_uefi-firmware  41_custom
05_debian_theme  20_linux_xen  30_os-prober   40_custom         README
Maintenant j'ai ceci

Code: Select all

# ls
00_header        20_linux_xen        40_custom_proxy     43_custom_proxy  backup            README
05_debian_theme  21_memtest86+       41_os-prober_proxy  44_custom        bin
10_linux         30_os-prober_proxy  42_uefi-firmware    45_grml          proxifiedScripts
Cela a changer suite a ceci:
un update-grub pour prendre en compte ceci, qui ne concerne pas ma distri pricipale sur sda1, mais antiX-17 sur sda6
Préparation du dépaquetage de .../0-linux-headers-4.15.5-antix.1-686-smp-pae_4.15.5-antix.1-686-smp-pae-2_i386.deb ...
Dépaquetage de linux-headers-4.15.5-antix.1-686-smp-pae (4.15.5-antix.1-686-smp-pae-2) ...
Sélection du paquet linux-image-4.15.5-antix.1-686-smp-pae précédemment désélectionné.
Préparation du dépaquetage de .../1-linux-image-4.15.5-antix.1-686-smp-pae_4.15.5-antix.1-686-smp-pae-2_i386.deb ...
Dépaquetage de linux-image-4.15.5-antix.1-686-smp-pae (4.15.5-antix.1-686-smp-pae-2) ...
Merci
Last edited by tradonal on Mon Mar 19, 2018 4:04 pm, edited 2 times in total.

tradonal
Forum Novice
Forum  Novice
Posts: 76
Joined: Mon Sep 25, 2017 11:43 am

Re: update grub

#2 Post by tradonal » Sun Mar 04, 2018 8:08 am

le répertoire grub.d

Code: Select all

root@mx1:/home/carl# ls -la /etc/grub.d/*
-rwxr-xr-x 1 root root  9424 déc 14  2015 /etc/grub.d/00_header
-rwxr-xr-x 1 root root  6058 déc 14  2015 /etc/grub.d/05_debian_theme
-rwxr-xr-x 1 root root 12261 déc 14  2015 /etc/grub.d/10_linux
-rwxr-xr-x 1 root root 11082 déc 14  2015 /etc/grub.d/20_linux_xen
-rwxr-xr-x 1 root root  1570 avr 15  2017 /etc/grub.d/21_memtest86+
-rwxr-xr-x 1 root root   442 fév 24 21:48 /etc/grub.d/30_os-prober_proxy
-rwxr-xr-x 1 root root   410 fév 24 21:48 /etc/grub.d/40_custom_proxy
-rwxr-xr-x 1 root root   841 fév 24 21:48 /etc/grub.d/41_os-prober_proxy
-rwxr-xr-x 1 root root  1416 déc 14  2015 /etc/grub.d/42_uefi-firmware
-rwxr-xr-x 1 root root   410 fév 24 21:48 /etc/grub.d/43_custom_proxy
-rwxr-xr-x 1 root root   216 déc 14  2015 /etc/grub.d/44_custom
-rwxr-xr-x 1 root root  3276 jan 24  2014 /etc/grub.d/45_grml
-rw-r--r-- 1 root root   483 déc 14  2015 /etc/grub.d/README

/etc/grub.d/backup:
total 24
drwxr-xr-x 4 root root 4096 oct 31 21:35 .
drwxr-xr-x 5 root root 4096 fév 24 21:48 ..
drwxr-xr-x 5 root root 4096 oct 31 21:35 boot_grub
-rw-r--r-- 1 root root 1295 oct 31 21:35 default_grub
drwxr-xr-x 2 root root 4096 oct 31 21:35 etc_grub_d
-rw-r--r-- 1 root root  519 oct 31 21:35 RESTORE_INSTRUCTIONS

/etc/grub.d/bin:
total 456
drwxr-xr-x 2 root root   4096 fév 24 21:48 .
drwxr-xr-x 5 root root   4096 fév 24 21:48 ..
-rwxr-xr-x 1 root root 458256 fév 24 21:48 grubcfg_proxy

/etc/grub.d/proxifiedScripts:
total 24
drwxr-xr-x 2 root root  4096 mar  3 19:39 .
drwxr-xr-x 5 root root  4096 fév 24 21:48 ..
-rwxr-xr-x 1 root root   518 mar  3 19:39 custom
-rwxr-xr-x 1 root root 11692 déc 14  2015 os-prober
root@mx1:/home/carl# 
le grub.cfg

Code: Select all

#
# 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_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2630b494-8ca2-4672-bae9-fa29b58ab472
else
  search --no-floppy --fs-uuid --set=root 2630b494-8ca2-4672-bae9-fa29b58ab472
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=fr_BE
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'MX GNU/Linux' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2630b494-8ca2-4672-bae9-fa29b58ab472' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2630b494-8ca2-4672-bae9-fa29b58ab472
	else
	  search --no-floppy --fs-uuid --set=root 2630b494-8ca2-4672-bae9-fa29b58ab472
	fi
	echo	'Chargement de Linux 4.10.1-antix.1-486-smp…'
	linux	/boot/vmlinuz-4.10.1-antix.1-486-smp root=UUID=2630b494-8ca2-4672-bae9-fa29b58ab472 ro  quiet
	echo	'Chargement du disque mémoire initial…'
	initrd	/boot/initrd.img-4.10.1-antix.1-486-smp
}
submenu 'Options avancées pour MX GNU/Linux' $menuentry_id_option 'gnulinux-advanced-2630b494-8ca2-4672-bae9-fa29b58ab472' {
	menuentry 'MX GNU/Linux, avec Linux 4.10.1-antix.1-486-smp' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.1-antix.1-486-smp-advanced-2630b494-8ca2-4672-bae9-fa29b58ab472' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2630b494-8ca2-4672-bae9-fa29b58ab472
		else
		  search --no-floppy --fs-uuid --set=root 2630b494-8ca2-4672-bae9-fa29b58ab472
		fi
		echo	'Chargement de Linux 4.10.1-antix.1-486-smp…'
		linux	/boot/vmlinuz-4.10.1-antix.1-486-smp root=UUID=2630b494-8ca2-4672-bae9-fa29b58ab472 ro  quiet
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-4.10.1-antix.1-486-smp
	}
	menuentry 'MX GNU/Linux, with Linux 4.10.1-antix.1-486-smp (sysvinit)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.1-antix.1-486-smp-init-sysvinit-2630b494-8ca2-4672-bae9-fa29b58ab472' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2630b494-8ca2-4672-bae9-fa29b58ab472
		else
		  search --no-floppy --fs-uuid --set=root 2630b494-8ca2-4672-bae9-fa29b58ab472
		fi
		echo	'Chargement de Linux 4.10.1-antix.1-486-smp…'
		linux	/boot/vmlinuz-4.10.1-antix.1-486-smp root=UUID=2630b494-8ca2-4672-bae9-fa29b58ab472 ro  quiet init=/lib/sysvinit/init
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-4.10.1-antix.1-486-smp
	}
	menuentry 'MX GNU/Linux, with Linux 4.10.1-antix.1-486-smp (systemd)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.1-antix.1-486-smp-init-systemd-2630b494-8ca2-4672-bae9-fa29b58ab472' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2630b494-8ca2-4672-bae9-fa29b58ab472
		else
		  search --no-floppy --fs-uuid --set=root 2630b494-8ca2-4672-bae9-fa29b58ab472
		fi
		echo	'Chargement de Linux 4.10.1-antix.1-486-smp…'
		linux	/boot/vmlinuz-4.10.1-antix.1-486-smp root=UUID=2630b494-8ca2-4672-bae9-fa29b58ab472 ro  quiet init=/lib/systemd/systemd
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-4.10.1-antix.1-486-smp
	}
	menuentry 'MX GNU/Linux, avec Linux 3.16.0-4-686-pae' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-686-pae-advanced-2630b494-8ca2-4672-bae9-fa29b58ab472' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2630b494-8ca2-4672-bae9-fa29b58ab472
		else
		  search --no-floppy --fs-uuid --set=root 2630b494-8ca2-4672-bae9-fa29b58ab472
		fi
		echo	'Chargement de Linux 3.16.0-4-686-pae…'
		linux	/boot/vmlinuz-3.16.0-4-686-pae root=UUID=2630b494-8ca2-4672-bae9-fa29b58ab472 ro  quiet
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-3.16.0-4-686-pae
	}
	menuentry 'MX GNU/Linux, with Linux 3.16.0-4-686-pae (sysvinit)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-686-pae-init-sysvinit-2630b494-8ca2-4672-bae9-fa29b58ab472' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2630b494-8ca2-4672-bae9-fa29b58ab472
		else
		  search --no-floppy --fs-uuid --set=root 2630b494-8ca2-4672-bae9-fa29b58ab472
		fi
		echo	'Chargement de Linux 3.16.0-4-686-pae…'
		linux	/boot/vmlinuz-3.16.0-4-686-pae root=UUID=2630b494-8ca2-4672-bae9-fa29b58ab472 ro  quiet init=/lib/sysvinit/init
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-3.16.0-4-686-pae
	}
	menuentry 'MX GNU/Linux, with Linux 3.16.0-4-686-pae (systemd)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-686-pae-init-systemd-2630b494-8ca2-4672-bae9-fa29b58ab472' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2630b494-8ca2-4672-bae9-fa29b58ab472
		else
		  search --no-floppy --fs-uuid --set=root 2630b494-8ca2-4672-bae9-fa29b58ab472
		fi
		echo	'Chargement de Linux 3.16.0-4-686-pae…'
		linux	/boot/vmlinuz-3.16.0-4-686-pae root=UUID=2630b494-8ca2-4672-bae9-fa29b58ab472 ro  quiet init=/lib/systemd/systemd
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-3.16.0-4-686-pae
	}
	menuentry 'MX GNU/Linux, avec Linux 3.16.0-4-586' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-586-advanced-2630b494-8ca2-4672-bae9-fa29b58ab472' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2630b494-8ca2-4672-bae9-fa29b58ab472
		else
		  search --no-floppy --fs-uuid --set=root 2630b494-8ca2-4672-bae9-fa29b58ab472
		fi
		echo	'Chargement de Linux 3.16.0-4-586…'
		linux	/boot/vmlinuz-3.16.0-4-586 root=UUID=2630b494-8ca2-4672-bae9-fa29b58ab472 ro  quiet
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-3.16.0-4-586
	}
	menuentry 'MX GNU/Linux, with Linux 3.16.0-4-586 (sysvinit)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-586-init-sysvinit-2630b494-8ca2-4672-bae9-fa29b58ab472' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2630b494-8ca2-4672-bae9-fa29b58ab472
		else
		  search --no-floppy --fs-uuid --set=root 2630b494-8ca2-4672-bae9-fa29b58ab472
		fi
		echo	'Chargement de Linux 3.16.0-4-586…'
		linux	/boot/vmlinuz-3.16.0-4-586 root=UUID=2630b494-8ca2-4672-bae9-fa29b58ab472 ro  quiet init=/lib/sysvinit/init
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-3.16.0-4-586
	}
	menuentry 'MX GNU/Linux, with Linux 3.16.0-4-586 (systemd)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-586-init-systemd-2630b494-8ca2-4672-bae9-fa29b58ab472' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2630b494-8ca2-4672-bae9-fa29b58ab472
		else
		  search --no-floppy --fs-uuid --set=root 2630b494-8ca2-4672-bae9-fa29b58ab472
		fi
		echo	'Chargement de Linux 3.16.0-4-586…'
		linux	/boot/vmlinuz-3.16.0-4-586 root=UUID=2630b494-8ca2-4672-bae9-fa29b58ab472 ro  quiet init=/lib/systemd/systemd
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-3.16.0-4-586
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/21_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2630b494-8ca2-4672-bae9-fa29b58ab472
	else
	  search --no-floppy --fs-uuid --set=root 2630b494-8ca2-4672-bae9-fa29b58ab472
	fi
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2630b494-8ca2-4672-bae9-fa29b58ab472
	else
	  search --no-floppy --fs-uuid --set=root 2630b494-8ca2-4672-bae9-fa29b58ab472
	fi
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2630b494-8ca2-4672-bae9-fa29b58ab472
	else
	  search --no-floppy --fs-uuid --set=root 2630b494-8ca2-4672-bae9-fa29b58ab472
	fi
	multiboot	/boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2630b494-8ca2-4672-bae9-fa29b58ab472
	else
	  search --no-floppy --fs-uuid --set=root 2630b494-8ca2-4672-bae9-fa29b58ab472
	fi
	multiboot	/boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/21_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober_proxy ###

### END /etc/grub.d/30_os-prober_proxy ###

### BEGIN /etc/grub.d/40_custom_proxy ###
### END /etc/grub.d/40_custom_proxy ###

### BEGIN /etc/grub.d/41_os-prober_proxy ###
### END /etc/grub.d/41_os-prober_proxy ###

### BEGIN /etc/grub.d/42_uefi-firmware ###
### END /etc/grub.d/42_uefi-firmware ###

### BEGIN /etc/grub.d/43_custom_proxy ###

# 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 "xenialpup-7.5, frugal on /dev/sda1" {
set root='hd0,msdos1'
linux /xenialpup-7.5/vmlinuz pdev1=sda1 psubdir=xenialpup-7.5 pkeys=azerty be-latin1
initrd /xenialpup-7.5/initrd.gz
}
menuentry "Distribs lancées depuis leur fichier 'iso'" {
set root='hd0,msdos1'
configfile /isos/00_isoboot.cfg
}
### END /etc/grub.d/43_custom_proxy ###

### BEGIN /etc/grub.d/44_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/44_custom ###

### BEGIN /etc/grub.d/45_grml ###
### END /etc/grub.d/45_grml ###
tout a changé avec aussi ceci proxy
Est ce normale ?
merci

tradonal
Forum Novice
Forum  Novice
Posts: 76
Joined: Mon Sep 25, 2017 11:43 am

Re: update grub edit for Meltdown and Spectre

#3 Post by tradonal » Mon Mar 19, 2018 4:03 pm

Remarque importante:
En ouvrant ce post je pensais que la modification du répertoire /etc/grub.d/ avait été causé suite a un "update-grub" pour linux-image-4.15.5-antix.1-686-smp-pae.....
Cela n'est pas juste, la cause est grub-customizer
dolphin_oracle wrote: viewtopic.php?p=437924#p437924I believe your changes are due to usage of grub-customizer, not due to the kernel change. the give away is the presence of the backup directory.

also, your forum topic title has nothing to do with your post.
A suivre ici viewtopic.php?f=104&t=44313

User avatar
cyrilus31
Forum Regular
Forum Regular
Posts: 546
Joined: Thu Nov 03, 2016 3:24 pm

Re: (résolu) update grub edit for Meltdown and Spectre

#4 Post by cyrilus31 » Mon Mar 19, 2018 5:59 pm

Merci pour l'info tradonal.

J'ai suivi un peu de loin et je regarderai ça à tête reposée quand j'aurai un peu de temps ;)

tradonal
Forum Novice
Forum  Novice
Posts: 76
Joined: Mon Sep 25, 2017 11:43 am

Re: (résolu) update grub edit for Meltdown and Spectre

#5 Post by tradonal » Fri Mar 23, 2018 3:48 pm

hello,
si mes remontées peuvent aider...... ;)
C'est surtout moi "nous'" qui vous remercions pour le temps que vous donnez a nous aider.. et en plus, sans entrer dans le vif du sujet "gnu-linux" qui nous permet d'utiliser un système d'exploitation qui est complètement stable avec toutes les possibilités qui en découles..... "communautés, distri,...." et tout cela pour pas un sous, en sachant que nous vivons actuellement dans une société de sur consommations ou la moindre chose ce paye.....
:clap:

Je reviendrai avec plus d'info.... :happy:

thx all

tradonal
Forum Novice
Forum  Novice
Posts: 76
Joined: Mon Sep 25, 2017 11:43 am

Re: (résolu) update grub edit for Meltdown and Spectre

#6 Post by tradonal » Fri Mar 23, 2018 4:43 pm

première partie:
-) installation d' antiX-17 sur sda6 sans gestionnaire de boot
-) reboot sur sda1
-) j'ai repassé l'entrée de os-prober dans etc/defaut/grub a "false"

Code: Select all

$ cat /etc/default/grub |grep OS_PROBER
GRUB_DISABLE_OS_PROBER="false"
-) mise a jour grub

Code: Select all

$ sudo update-grub
Création du fichier de configuration GRUB…
Image Linux trouvée : /boot/vmlinuz-4.10.1-antix.1-486-smp
Image mémoire initiale trouvée : /boot/initrd.img-4.10.1-antix.1-486-smp
Image Linux trouvée : /boot/vmlinuz-3.16.0-4-686-pae
Image mémoire initiale trouvée : /boot/initrd.img-3.16.0-4-686-pae
Image Linux trouvée : /boot/vmlinuz-3.16.0-4-586
Image mémoire initiale trouvée : /boot/initrd.img-3.16.0-4-586
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
  No volume groups found
antiX 17 (17) trouvé sur /dev/sda6
fait
-) le repertoire grub.d est ok

Code: Select all

$ ls /etc/grub.d/
00_header        10_linux      20_memtest86+  30_uefi-firmware  41_custom  README
05_debian_theme  20_linux_xen  30_os-prober   40_custom         42_grml
-) l'entree os-prober dans grub.cfg

Code: Select all

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'antiX 17 (17) (sur /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-38cfdfc8-63ab-491a-9f5a-2ebc7578c8d1' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  38cfdfc8-63ab-491a-9f5a-2ebc7578c8d1
	else
	  search --no-floppy --fs-uuid --set=root 38cfdfc8-63ab-491a-9f5a-2ebc7578c8d1
	fi
	linux /boot/vmlinuz-4.10.5-antix.1-486-smp root=/dev/sda6
	initrd /boot/initrd.img-4.10.5-antix.1-486-smp
}
submenu 'Options avancées pour antiX 17 (17) (sur /dev/sda6)' $menuentry_id_option 'osprober-gnulinux-advanced-38cfdfc8-63ab-491a-9f5a-2ebc7578c8d1' {
	menuentry 'antiX 17 (17) (sur /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.10.5-antix.1-486-smp--38cfdfc8-63ab-491a-9f5a-2ebc7578c8d1' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  38cfdfc8-63ab-491a-9f5a-2ebc7578c8d1
		else
		  search --no-floppy --fs-uuid --set=root 38cfdfc8-63ab-491a-9f5a-2ebc7578c8d1
		fi
		linux /boot/vmlinuz-4.10.5-antix.1-486-smp root=/dev/sda6
		initrd /boot/initrd.img-4.10.5-antix.1-486-smp
	}
}

### END /etc/grub.d/30_os-prober ###
A suivre..... ;)

Post Reply

Return to “Forum Français”