Package: grub-common Version: 2.02~beta2-28 Severity: important Tags: patch
The update-grub2 script regenerates grub's configuration by calling the /etc/grub.d/* scripts, it tries to determine the root= parameter for each parameter. If an installation uses cryptsetup for the root partition, this parameter needs to point to the dm-crypt mapping for the opened device, which is usually opened through a script in the initramfs asking the user for a key. The "10_linux" script responsible fails to handle this situation correctly for installations other than the one currently running which use a different dm-crypt root partition. The script simply points "root=" to the currently mounted root partition, which may be wrong for other installation and render those installations unbootable. Because update-grub2 regenerates all entries on every launch, this even corrupts a configuration that was correctly set up by the user. To illustrate: I was running an installation that maps encrypted /dev/sda1 to encrypted /dev/mapper/alpha, using this as its root device. I also have another installation that maps encrypted /dev/sdb2 to /dev/mapper/bravo and uses it as root. Running update-grub2 on the first installation will tell installation 2 to boot by mounting a disk with /dev/mapper/alpha's UUID as root. This will always break installation 2. My proposed fix is to look at the initramfs of every installation before creating its installation. When Debian uses a dm-crypt device as root, it creates a script "conf/conf.d/cryptroot" in the initramfs. This script contains all information necessary to retrieve the correct root= parameter for the installation. Some string manipulation extracts the device target, i.e. the name under which the decrypted device will show up under /dev/mapper/. Note that /dev/mapper/sdXX_crypt is a purely arbitrary name generated by the installer and has nothing to do with /dev/sdXX. My proposed fix thus also works if the encrypted device happens to be at a node other than /dev/sdXX as long as the dm-crypt device is mounted by its UUID, not by its node. Patch follows: --- /etc/grub.d/10_linux 2015-10-10 18:45:08.755900038 -0700 +++ ./10_linux_fix 2015-10-10 18:36:45.725983101 -0700 @@ -177,8 +177,18 @@ linux ${rel_dirname}/${basename}.efi.signed root=${linux_root_device_thisversion} ro ${args} EOF else + cryptroot=$(zcat /boot/${initrd} | cpio -i --to-stdout conf/conf.d/cryptroot | cut -d, -f1 -| cut -d= -f2) + if [ x"$cryptroot" != "" ]; then +# printf "${basename}" "is using cryptsetup, overriding ROOT to " "$newroot"; + + rootparam="/dev/mapper/"$cryptroot; + echo '' + else + rootparam="UUID="${linux_root_device_thisversion}; + fi + sed "s/^/$submenu_indentation/" << EOF - linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} + linux ${rel_dirname}/${basename} root=$rootparam ro ${args} EOF fi if test -n "${initrd}" ; then -- Package-specific info: *********************** BEGIN /proc/mounts /dev/dm-0 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0 /dev/sda3 /boot ext2 rw,relatime 0 0 *********************** END /proc/mounts *********************** BEGIN /boot/grub/grub.cfg # # 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="7" 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,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint -efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6257fe90-95c0-43eb-8348 -4b595bb662c6 else search --no-floppy --fs-uuid --set=root 6257fe90-95c0-43eb-8348 -4b595bb662c6 fi font="/grub/unicode.pf2" fi if loadfont $font ; then set gfxmode=auto load_video insmod gfxterm set locale_dir=$prefix/locale set lang=en_US insmod gettext fi terminal_output gfxterm if [ "${recordfail}" = 1 ] ; then set timeout=30 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 ### insmod part_msdos insmod ext2 set root='hd0,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint -efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6257fe90-95c0-43eb-8348 -4b595bb662c6 else search --no-floppy --fs-uuid --set=root 6257fe90-95c0-43eb-8348 -4b595bb662c6 fi insmod png if background_image /grub/.background_cache.png; then set color_normal=white/black set color_highlight=black/white else set menu_color_normal=cyan/blue set menu_color_highlight=white/blue fi ### 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 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-8e4c0a3f-c44a-44d1 -96d8-954048f28735' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint -bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6257fe90-95c0-43eb-8348-4b595bb662c6 else search --no-floppy --fs-uuid --set=root 6257fe90-95c0-43eb -8348-4b595bb662c6 fi echo 'Loading Linux 4.2.0-1-amd64 ...' linux /vmlinuz-4.2.0-1-amd64 root=UUID=8e4c0a3f-c44a -44d1-96d8-954048f28735 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-4.2.0-1-amd64 } submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-8e4c0a3f-c44a-44d1-96d8-954048f28735' { menuentry 'Debian GNU/Linux, with Linux 4.2.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-1-amd64-advanced-8e4c0a3f-c44a-44d1-96d8-954048f28735' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint -bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6257fe90-95c0-43eb-8348-4b595bb662c6 else search --no-floppy --fs-uuid --set=root 6257fe90-95c0 -43eb-8348-4b595bb662c6 fi echo 'Loading Linux 4.2.0-1-amd64 ...' linux /vmlinuz-4.2.0-1-amd64 root=UUID=8e4c0a3f -c44a-44d1-96d8-954048f28735 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-4.2.0-1-amd64 } menuentry 'Debian GNU/Linux, with Linux 4.2.0-1-amd64 (systemd)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-1-amd64-init-systemd-8e4c0a3f-c44a -44d1-96d8-954048f28735' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint -bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6257fe90-95c0-43eb-8348-4b595bb662c6 else search --no-floppy --fs-uuid --set=root 6257fe90-95c0 -43eb-8348-4b595bb662c6 fi echo 'Loading Linux 4.2.0-1-amd64 ...' linux /vmlinuz-4.2.0-1-amd64 root=UUID=8e4c0a3f -c44a-44d1-96d8-954048f28735 ro quiet init=/lib/systemd/systemd echo 'Loading initial ramdisk ...' initrd /initrd.img-4.2.0-1-amd64 } menuentry 'Debian GNU/Linux, with Linux 4.2.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-1-amd64-recovery-8e4c0a3f-c44a -44d1-96d8-954048f28735' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint -bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6257fe90-95c0-43eb-8348-4b595bb662c6 else search --no-floppy --fs-uuid --set=root 6257fe90-95c0 -43eb-8348-4b595bb662c6 fi echo 'Loading Linux 4.2.0-1-amd64 ...' linux /vmlinuz-4.2.0-1-amd64 root=UUID=8e4c0a3f -c44a-44d1-96d8-954048f28735 ro single echo 'Loading initial ramdisk ...' initrd /initrd.img-4.2.0-1-amd64 } menuentry 'Debian GNU/Linux, with Linux 3.16.2' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux -3.16.2-advanced-8e4c0a3f-c44a-44d1-96d8-954048f28735' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint -bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6257fe90-95c0-43eb-8348-4b595bb662c6 else search --no-floppy --fs-uuid --set=root 6257fe90-95c0 -43eb-8348-4b595bb662c6 fi echo 'Loading Linux 3.16.2 ...' linux /vmlinuz-3.16.2 root=UUID=8e4c0a3f-c44a -44d1-96d8-954048f28735 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-3.16.2 } menuentry 'Debian GNU/Linux, with Linux 3.16.2 (systemd)' - -class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.2-init-systemd-8e4c0a3f-c44a-44d1 -96d8-954048f28735' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint -bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6257fe90-95c0-43eb-8348-4b595bb662c6 else search --no-floppy --fs-uuid --set=root 6257fe90-95c0 -43eb-8348-4b595bb662c6 fi echo 'Loading Linux 3.16.2 ...' linux /vmlinuz-3.16.2 root=UUID=8e4c0a3f-c44a -44d1-96d8-954048f28735 ro quiet init=/lib/systemd/systemd echo 'Loading initial ramdisk ...' initrd /initrd.img-3.16.2 } menuentry 'Debian GNU/Linux, with Linux 3.16.2 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.2-recovery-8e4c0a3f-c44a-44d1-96d8 -954048f28735' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint -bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6257fe90-95c0-43eb-8348-4b595bb662c6 else search --no-floppy --fs-uuid --set=root 6257fe90-95c0 -43eb-8348-4b595bb662c6 fi echo 'Loading Linux 3.16.2 ...' linux /vmlinuz-3.16.2 root=UUID=8e4c0a3f-c44a -44d1-96d8-954048f28735 ro single echo 'Loading initial ramdisk ...' initrd /initrd.img-3.16.2 } menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-8e4c0a3f-c44a-44d1-96d8-954048f28735' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint -bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6257fe90-95c0-43eb-8348-4b595bb662c6 else search --no-floppy --fs-uuid --set=root 6257fe90-95c0 -43eb-8348-4b595bb662c6 fi echo 'Loading Linux 3.16.0-4-amd64 ...' linux /vmlinuz-3.16.0-4-amd64 root=UUID=8e4c0a3f -c44a-44d1-96d8-954048f28735 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-3.16.0-4-amd64 } menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (systemd)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-init-systemd-8e4c0a3f -c44a-44d1-96d8-954048f28735' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint -bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6257fe90-95c0-43eb-8348-4b595bb662c6 else search --no-floppy --fs-uuid --set=root 6257fe90-95c0 -43eb-8348-4b595bb662c6 fi echo 'Loading Linux 3.16.0-4-amd64 ...' linux /vmlinuz-3.16.0-4-amd64 root=UUID=8e4c0a3f -c44a-44d1-96d8-954048f28735 ro quiet init=/lib/systemd/systemd echo 'Loading initial ramdisk ...' initrd /initrd.img-3.16.0-4-amd64 } menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-8e4c0a3f-c44a -44d1-96d8-954048f28735' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint -bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6257fe90-95c0-43eb-8348-4b595bb662c6 else search --no-floppy --fs-uuid --set=root 6257fe90-95c0 -43eb-8348-4b595bb662c6 fi echo 'Loading Linux 3.16.0-4-amd64 ...' linux /vmlinuz-3.16.0-4-amd64 root=UUID=8e4c0a3f -c44a-44d1-96d8-954048f28735 ro single echo 'Loading initial ramdisk ...' initrd /initrd.img-3.16.0-4-amd64 } } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/20_memtest86+ ### menuentry "Memory test (memtest86+)" { insmod part_msdos insmod ext2 set root='hd0,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint -bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6257fe90-95c0-43eb-8348-4b595bb662c6 else search --no-floppy --fs-uuid --set=root 6257fe90-95c0-43eb -8348-4b595bb662c6 fi linux16 /memtest86+.bin } menuentry "Memory test (memtest86+, serial console 115200)" { insmod part_msdos insmod ext2 set root='hd0,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint -bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6257fe90-95c0-43eb-8348-4b595bb662c6 else search --no-floppy --fs-uuid --set=root 6257fe90-95c0-43eb -8348-4b595bb662c6 fi linux16 /memtest86+.bin console=ttyS0,115200n8 } menuentry "Memory test (memtest86+, experimental multiboot)" { insmod part_msdos insmod ext2 set root='hd0,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint -bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6257fe90-95c0-43eb-8348-4b595bb662c6 else search --no-floppy --fs-uuid --set=root 6257fe90-95c0-43eb -8348-4b595bb662c6 fi multiboot /memtest86+_multiboot.bin } menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" { insmod part_msdos insmod ext2 set root='hd0,msdos3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint -bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6257fe90-95c0-43eb-8348-4b595bb662c6 else search --no-floppy --fs-uuid --set=root 6257fe90-95c0-43eb -8348-4b595bb662c6 fi multiboot /memtest86+_multiboot.bin console=ttyS0,115200n8 } ### END /etc/grub.d/20_memtest86+ ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-A4B09BBAB09B9182' { insmod part_msdos insmod ntfs set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint -bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 A4B09BBAB09B9182 else search --no-floppy --fs-uuid --set=root A4B09BBAB09B9182 fi parttool ${root} hidden- chainloader +1 } ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/30_uefi-firmware ### ### END /etc/grub.d/30_uefi-firmware ### ### BEGIN /etc/grub.d/40_custom ### # 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. ### END /etc/grub.d/40_custom ### ### BEGIN /etc/grub.d/41_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/41_custom ###*********************** END /boot/grub/grub.cfg *********************** BEGIN /proc/mdstat cat: /proc/mdstat: No such file or directory *********************** END /proc/mdstat *********************** BEGIN LVM *********************** END LVM *********************** BEGIN /dev/disk/by-id total 0 lrwxrwxrwx 1 root root 9 Oct 10 18:27 ata -Crucial_CT1024MX200SSD1_14510E69FBED -> ../../sda lrwxrwxrwx 1 root root 10 Oct 10 18:27 ata -Crucial_CT1024MX200SSD1_14510E69FBED-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Oct 10 18:27 ata -Crucial_CT1024MX200SSD1_14510E69FBED-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Oct 10 18:27 ata -Crucial_CT1024MX200SSD1_14510E69FBED-part3 -> ../../sda3 lrwxrwxrwx 1 root root 10 Oct 10 18:27 ata -Crucial_CT1024MX200SSD1_14510E69FBED-part4 -> ../../sda4 lrwxrwxrwx 1 root root 10 Oct 10 18:27 ata -Crucial_CT1024MX200SSD1_14510E69FBED-part5 -> ../../sda5 lrwxrwxrwx 1 root root 10 Oct 10 18:27 ata -Crucial_CT1024MX200SSD1_14510E69FBED-part6 -> ../../sda6 lrwxrwxrwx 1 root root 10 Oct 10 18:27 ata -Crucial_CT1024MX200SSD1_14510E69FBED-part7 -> ../../sda7 lrwxrwxrwx 1 root root 10 Oct 10 18:27 dm-name-sda5_crypt -> ../../dm-0 lrwxrwxrwx 1 root root 10 Oct 10 18:27 dm-uuid-CRYPT-LUKS1 -d536c597cb414965b7768421cbdd68ea-sda5_crypt -> ../../dm-0 lrwxrwxrwx 1 root root 9 Oct 10 18:27 wwn-0x500a07510e69fbed -> ../../sda lrwxrwxrwx 1 root root 10 Oct 10 18:27 wwn-0x500a07510e69fbed-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Oct 10 18:27 wwn-0x500a07510e69fbed-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Oct 10 18:27 wwn-0x500a07510e69fbed-part3 -> ../../sda3 lrwxrwxrwx 1 root root 10 Oct 10 18:27 wwn-0x500a07510e69fbed-part4 -> ../../sda4 lrwxrwxrwx 1 root root 10 Oct 10 18:27 wwn-0x500a07510e69fbed-part5 -> ../../sda5 lrwxrwxrwx 1 root root 10 Oct 10 18:27 wwn-0x500a07510e69fbed-part6 -> ../../sda6 lrwxrwxrwx 1 root root 10 Oct 10 18:27 wwn-0x500a07510e69fbed-part7 -> ../../sda7 *********************** END /dev/disk/by-id *********************** BEGIN /dev/disk/by-uuid total 0 lrwxrwxrwx 1 root root 10 Oct 10 18:27 6257fe90-95c0-43eb-8348 -4b595bb662c6 -> ../../sda3 lrwxrwxrwx 1 root root 10 Oct 10 18:27 783239CD323990DC -> ../../sda2 lrwxrwxrwx 1 root root 10 Oct 10 18:27 8e4c0a3f-c44a-44d1-96d8 -954048f28735 -> ../../dm-0 lrwxrwxrwx 1 root root 10 Oct 10 18:27 A4B09BBAB09B9182 -> ../../sda1 lrwxrwxrwx 1 root root 10 Oct 10 18:27 d536c597-cb41-4965-b776 -8421cbdd68ea -> ../../sda5 lrwxrwxrwx 1 root root 10 Oct 10 18:27 f4e59d3a-b901-468c-96f4 -b84090d0f3a9 -> ../../sda7 *********************** END /dev/disk/by-uuid -- System Information: Debian Release: stretch/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages grub-common depends on: ii gettext-base 0.19.6-1 ii libc6 2.19-22 ii libdevmapper1.02.1 2:1.02.104-1 ii libfreetype6 2.6-2 ii libfuse2 2.9.4-1 ii liblzma5 5.1.1alpha+20120614-2.1 ii libpng12-0 1.2.50-2+b2 ii zlib1g 1:1.2.8.dfsg-2+b1 Versions of packages grub-common recommends: ii os-prober 1.67 Versions of packages grub-common suggests: ii console-setup 1.133 ii desktop-base 8.0.2 pn grub-emu <none> pn multiboot-doc <none> pn xorriso <none> -- no debconf information