Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Error in upgrade process might make a server unbootable

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
no2systemd
Posts: 3
Joined: 2018-12-19 18:07

Error in upgrade process might make a server unbootable

#1 Post by no2systemd »

I am completely new to Debian and have found myself in the Alice in Wonderland environment today. Can somebody please explain me what to do after I uncounted the error today which might lead to errors in grub.cfg: some symlinks were created by apt in the root filesystem, from /boot, the situation I never experienced before.

I am trying to move some servers from RHEL to Debian and I already have one server (which was created by a different sysadmin, who left). Initially it was version 8 (Jessie)
It has dual boot (CentOS/Debian) configuration.

Today I tried to upgrade it from 8 to 9 (Stretch) to install Docker on it (I was not able to install it on Jessie due to dependencies for package
software-properties-common

Actually it did not help and the problem remains after the upgrade

Code: Select all

root@euler:/etc/apt# apt install software-properties-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 software-properties-common : Depends: python3-software-properties (= 0.96.20.2-1) but it is not going to be installed
                              Recommends: packagekit but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@euler:/etc/apt# apt install python3-software-properties
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3-software-properties : Depends: python3-apt (>= 0.8.8.2) but it is not going to be installed
                               Recommends: unattended-upgrades but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@euler:/etc/apt# apt install python3-apt
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dictionaries-common emacsen-common gstreamer1.0-libav gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-x heirloom-mailx hunspell-en-us libaa1 libaec0 libavc1394-0 libavformat56 libcaca0
  libcdparanoia0 libdv4 libgif4 libglu1-mesa libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libgudev-1.0-0 libhdf5-100 libhdf5-8 libhunspell-1.3-0 libiec61883-0 libjack-jackd2-0 libjasper1 libllvm3.5 libncbi6
  libpth20 libraw1394-11 libsamplerate0 libsctp1 libshout3 libslp1 libsz2 libtag1-vanilla libtag1c2a libv4l-0 libv4lconvert0 libvisual-0.4-0 libvisual-0.4-plugins libwavpack1 lksctp-tools python-cffi
  python-debian python-debianbts python-defusedxml python-distlib python-funcsigs python-h5py python-html5lib python-mock python-ndg-httpsclient python-openssl python-pbr python-ply python-pycparser
  python-requests python-soappy python-urllib3 python-webencodings python-wstools
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libapt-inst2.0 libapt-pkg5.0 python-apt-common
Suggested packages:
  python3-apt-dbg python-apt-doc
The following packages will be REMOVED:
  apt apt-utils
The following NEW packages will be installed:
  libapt-inst2.0 libapt-pkg5.0 python-apt-common python3-apt
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt
0 upgraded, 4 newly installed, 2 to remove and 23 not upgraded.
Need to get 0 B/1,372 kB of archives.
After this operation, 668 kB of additional disk space will be used.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
Initially on Jesse I answered yes and it happily deleted apt. It took me some time to find solution but eventually I reinstalled apt but as I have found later not app-utils ;-)

Now returning to the upgrade. When I typed

Code: Select all

apt dist-upgrade


apt initially did not find package

Code: Select all

Get:1 http://security.debian.org/ stable/updates/main linux-image-4.9.0-8-amd64 amd64 4.9.110-3+deb9u6 [39.0 MB]
So I run it with -m switch to skip the package which I planned to download and install separately as I thought that those were patches. It did not work well as after that update version is displayed as:

Code: Select all

root@euler:/etc/apt# cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
But sources remain from Jessie:

Code: Select all

root@euler:/etc/apt# cat /etc/apt/sourc*
#

# deb cdrom:[Debian GNU/Linux 8.5.0 _Jessie_ - Official amd64 NETINST Binary-1 20160604-15:31]/ jessie main

#deb cdrom:[Debian GNU/Linux 8.5.0 _Jessie_ - Official amd64 NETINST Binary-1 20160604-15:31]/ jessie main
#deb http://ftp.de.debian.org/debian stretch main
deb http://httpredir.debian.org/debian jessie main
deb-src http://httpredir.debian.org/debian jessie main

deb http://httpredir.debian.org/debian jessie-updates main
deb-src http://httpredir.debian.org/debian jessie-updates main

#deb http://security.debian.org/ stretch/updates main contrib non-free
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

deb http://mirror.it.ubc.ca/debian jessie main
deb http://mirror.its.dal.ca/debian jessie main
deb http://debian.mirror.iweb.ca/debian jessie main
deb http://debian.mirror.rafal.ca/debian jessie main

deb-src http://mirror.it.ubc.ca/debian jessie main
deb-src http://mirror.its.dal.ca/debian jessie main
deb-src http://debian.mirror.iweb.ca/debian jessie main
deb-src http://debian.mirror.rafal.ca/debian jessie main

deb http://mirror.it.ubc.ca/debian jessie-updates main
deb http://mirror.its.dal.ca/debian jessie-updates main
deb http://debian.mirror.iweb.ca/debian jessie-updates main
deb http://debian.mirror.rafal.ca/debian jessie-updates main

deb-src http://mirror.it.ubc.ca/debian jessie-updates main
deb-src http://mirror.its.dal.ca/debian jessie-updates main
deb-src http://debian.mirror.iweb.ca/debian jessie-updates main
deb-src http://debian.mirror.rafal.ca/debian jessie-updates main
cat: /etc/apt/sources.list.d: Is a directory
After several attempts to run

Code: Select all

apt upgrade

apt has found the package and downloaded it, but has errors during installation which I am afraid might make the server unbootable.

Code: Select all

root@euler:/etc/apt# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
dictionaries-common emacsen-common gstreamer1.0-libav gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-x heirloom-mailx hunspell-en-us iso-codes libaa1 libaec0 libavc1394-0 libavformat56
libcaca0 libcdparanoia0 libdv4 libgif4 libglu1-mesa libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libgudev-1.0-0 libhdf5-100 libhdf5-8 libhunspell-1.3-0 libiec61883-0 libjack-jackd2-0 libjasper1 libllvm3.5
libncbi6 libpth20 libraw1394-11 libsamplerate0 libsctp1 libshout3 libslp1 libsz2 libtag1-vanilla libtag1c2a libv4l-0 libv4lconvert0 libvisual-0.4-0 libvisual-0.4-plugins libwavpack1 lksctp-tools python-cffi
python-debian python-debianbts python-defusedxml python-distlib python-funcsigs python-h5py python-html5lib python-httplib2 python-mock python-ndg-httpsclient python-openssl python-pbr python-ply
python-pycparser python-requests python-soappy python-urllib3 python-webencodings python-wstools
Use 'apt-get autoremove' to remove them.
Done
The following NEW packages will be installed:
linux-image-4.9.0-8-amd64
The following packages have been kept back:
curl ifupdown python-debianbts
The following packages will be upgraded:
linux-image-amd64
1 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 39.0 MB/39.1 MB of archives.
After this operation, 193 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://security.debian.org/ stable/updates/main linux-image-4.9.0-8-amd64 amd64 4.9.110-3+deb9u6 [39.0 MB]
Fetched 36.2 MB in 56s (638 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package linux-image-4.9.0-8-amd64.
(Reading database ... 87269 files and directories currently installed.)
Preparing to unpack .../linux-image-4.9.0-8-amd64_4.9.110-3+deb9u6_amd64.deb ...
Unpacking linux-image-4.9.0-8-amd64 (4.9.110-3+deb9u6) ...
Preparing to unpack .../linux-image-amd64_4.9+80+deb9u6_amd64.deb ...
Unpacking linux-image-amd64 (4.9+80+deb9u6) over (3.16+63) ...
Setting up linux-image-4.9.0-8-amd64 (4.9.110-3+deb9u6) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-3.16.0-4-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-3.16.0-4-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-4.9.0-8-amd64
I: /initrd.img is now a symlink to boot/initrd.img-4.9.0-8-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.9.0-8-amd64
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.9.0-8-amd64
Found initrd image: /boot/initrd.img-4.9.0-8-amd64
Found linux image: /boot/vmlinuz-3.16.0-4-amd64
Found initrd image: /boot/initrd.img-3.16.0-4-amd64
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
Found CentOS release 6.8 (Final) on /dev/mapper/vg_euler-LogVol00
done
Setting up linux-image-amd64 (4.9+80+deb9u6) ...
==========================================

New kernel images were installed in /boot

Code: Select all

root@euler:/boot/grub# cd /boot
root@euler:/boot# ll
total 49M
-rw-r--r-- 1 root root 155K Sep 19  2017 config-3.16.0-4-amd64
-rw-r--r-- 1 root root 183K Oct  8 02:05 config-4.9.0-8-amd64
drwxr-xr-x 5 root root 1.0K Dec 19 15:14 grub/
-rw-r--r-- 1 root root  17M Dec 19 13:10 initrd.img-3.16.0-4-amd64
-rw-r--r-- 1 root root  19M Dec 19 15:14 initrd.img-4.9.0-8-amd64
drwx------ 2 root root  12K Jul 20  2016 lost+found/
-rw-r--r-- 1 root root 2.6M Sep 19  2017 System.map-3.16.0-4-amd64
-rw-r--r-- 1 root root 3.1M Oct  8 02:05 System.map-4.9.0-8-amd64
-rw-r--r-- 1 root root 3.0M Sep 19  2017 vmlinuz-3.16.0-4-amd64
-rw-r--r-- 1 root root 4.1M Oct  8 02:05 vmlinuz-4.9.0-8-amd64
but symlinks to them were created in the root filesystem

Code: Select all

root@euler:/boot# cd /
root@euler:/# ll
total 385K
drwxrwxr-x    2 root   root 4.0K Dec 19 13:08 bin/
drwxr-xr-x    4 root   root 1.0K Dec 19 15:14 boot/
drwxr-xr-x.   7 root   root 4.0K Dec 18 17:19 DATA/
drwxr-xr-x    2 root   root 4.0K Aug 24  2016 dell/
drwxr-xr-x   18 root   root 3.5K Dec 14 11:22 dev/
drwxr-xr-x  116 root   root  12K Dec 19 13:10 etc/
drwxr-xr-x    3 root   root    0 Dec 19 15:14 home/
lrwxrwxrwx    1 root   root   29 Dec 19 15:13 initrd.img -> boot/initrd.img-4.9.0-8-amd64
lrwxrwxrwx    1 root   root   30 Dec 19 15:13 initrd.img.old -> boot/initrd.img-3.16.0-4-amd64
drwxr-xr-x   15 root   root 4.0K Dec 19 13:08 lib/
drwxr-xr-x    2 root   root 4.0K Jun 21  2017 lib64/
drwxr-xr-x    2 root   root 4.0K Nov 17  2016 log/
drwx------    2 root   root  16K Jul 20  2016 lost+found/
drwxr-xr-x    3 root   root 4.0K Jul 20  2016 media/
drwxr-xr-x    3 root   root 4.0K May 19  2017 mnt/
drwxr-xr-x    3 root   root 4.0K Nov 17  2016 network/
drwxr-xr-x    5 root   root 4.0K Mar  2  2017 opt/
dr-xr-xr-x  705 root   root    0 Sep 16 21:27 proc/
drwx------   22 root   root 4.0K Dec 19 15:17 root/
drwxr-xr-x   22 root   root  940 Dec 19 14:55 run/
drwxr-xr-x    2 root   root  12K Dec 19 13:08 sbin/
drwxr-xr-x    2 root   root 4.0K Jul 20  2016 srv/
dr-xr-xr-x   13 root   root    0 Dec 18 17:17 sys/
-rw-r--r--    1 root   root   56 Apr 18  2018 sysinfo.04.log
-rw-r--r--    1 root   root   56 Jul 22  2016 sysinfo.07.log
-rw-r--r--    1 root   root  122 Sep 26 17:45 sysinfo.09.log
-rw-r--r--    1 root   root  67K Mar 12  2017 TARGET
drwxrwxrwt   12 root   root 132K Dec 19 15:25 tmp/
drwxr-xr-x   10 root   root 4.0K Jul 20  2016 usr/
drwxr-xr-x   12 root   root 4.0K Jul 20  2016 var/
lrwxrwxrwx    1 root   root   26 Dec 19 15:13 vmlinuz -> boot/vmlinuz-4.9.0-8-amd64
lrwxrwxrwx    1 root   root   27 Dec 19 15:13 vmlinuz.old -> boot/vmlinuz-3.16.0-4-amd64
It also modified grub.cfg

Code: Select all


root@euler:/boot/grub# cat  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="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 lvm
insmod ext2
set root='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/o2iOKB-KG5U-U98g-I0Rp-KKQj-pfys-EA35yO'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/o2iOKB-KG5U-U98g-I0Rp-KKQj-pfys-EA35yO'  e09793f8-2cf4-46e9-9253-af2b305605bc
else
  search --no-floppy --fs-uuid --set=root e09793f8-2cf4-46e9-9253-af2b305605bc
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=en_US
  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 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-e09793f8-2cf4-46e9-9253-af2b305605bc' {
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod lvm
        insmod ext2
        set root='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'  a5fbd402-7cf1-43f1-9f57-71c1116c783e
        else
          search --no-floppy --fs-uuid --set=root a5fbd402-7cf1-43f1-9f57-71c1116c783e
        fi
        echo    'Loading Linux 4.9.0-8-amd64 ...'
        linux   /vmlinuz-4.9.0-8-amd64 root=/dev/mapper/vg_euler-debian_root ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-4.9.0-8-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-e09793f8-2cf4-46e9-9253-af2b305605bc' {
        menuentry 'Debian GNU/Linux, with Linux 4.9.0-8-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-8-amd64-advanced-e09793f8-2cf4-46e9-9253-af2b305605bc' {
                load_video
                insmod gzio
                if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
                insmod part_msdos
                insmod lvm
                insmod ext2
                set root='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'  a5fbd402-7cf1-43f1-9f57-71c1116c783e
                else
                  search --no-floppy --fs-uuid --set=root a5fbd402-7cf1-43f1-9f57-71c1116c783e
                fi
                echo    'Loading Linux 4.9.0-8-amd64 ...'
                linux   /vmlinuz-4.9.0-8-amd64 root=/dev/mapper/vg_euler-debian_root ro  quiet
                echo    'Loading initial ramdisk ...'
                initrd  /initrd.img-4.9.0-8-amd64
        }
        menuentry 'Debian GNU/Linux, with Linux 4.9.0-8-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-8-amd64-recovery-e09793f8-2cf4-46e9-9253-af2b305605bc' {
                load_video
                insmod gzio
                if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
                insmod part_msdos
                insmod lvm
                insmod ext2
                set root='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'  a5fbd402-7cf1-43f1-9f57-71c1116c783e
                else
                  search --no-floppy --fs-uuid --set=root a5fbd402-7cf1-43f1-9f57-71c1116c783e
                fi
                echo    'Loading Linux 4.9.0-8-amd64 ...'
                linux   /vmlinuz-4.9.0-8-amd64 root=/dev/mapper/vg_euler-debian_root ro single
                echo    'Loading initial ramdisk ...'
                initrd  /initrd.img-4.9.0-8-amd64
        }
        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-e09793f8-2cf4-46e9-9253-af2b305605bc' {
                load_video
                insmod gzio
                if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
                insmod part_msdos
                insmod lvm
                insmod ext2
                set root='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'  a5fbd402-7cf1-43f1-9f57-71c1116c783e
                else
                  search --no-floppy --fs-uuid --set=root a5fbd402-7cf1-43f1-9f57-71c1116c783e
                fi
                echo    'Loading Linux 3.16.0-4-amd64 ...'
                linux   /vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vg_euler-debian_root 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 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-e09793f8-2cf4-46e9-9253-af2b305605bc' {
                load_video
                insmod gzio
                if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
                insmod part_msdos
                insmod lvm
                insmod ext2
                set root='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'  a5fbd402-7cf1-43f1-9f57-71c1116c783e
                else
                  search --no-floppy --fs-uuid --set=root a5fbd402-7cf1-43f1-9f57-71c1116c783e
                fi
                echo    'Loading Linux 3.16.0-4-amd64 ...'
                linux   /vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vg_euler-debian_root 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/30_os-prober ###
menuentry 'CentOS release 6.8 (Final) (on /dev/mapper/vg_euler-LogVol00)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-55629812-dada-464c-ae19-0bdf328f6252' {
        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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  31b8b326-3a66-4fe7-8a1d-2aa13a27b857
        else
          search --no-floppy --fs-uuid --set=root 31b8b326-3a66-4fe7-8a1d-2aa13a27b857
        fi
        linux /vmlinuz-2.6.32-642.1.1.el6.x86_64 ro root=/dev/mapper/vg_euler-LogVol00 rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_LVM_LV=vg_euler/LogVol00 KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet crashkernel=auto
        initrd /initramfs-2.6.32-642.1.1.el6.x86_64.img
}
submenu 'Advanced options for CentOS release 6.8 (Final) (on /dev/mapper/vg_euler-LogVol00)' $menuentry_id_option 'osprober-gnulinux-advanced-55629812-dada-464c-ae19-0bdf328f6252' {
        menuentry 'CentOS (2.6.32-642.1.1.el6.x86_64) (on /dev/mapper/vg_euler-LogVol00)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-2.6.32-642.1.1.el6.x86_64--55629812-dada-464c-ae19-0bdf328f6252' {
                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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  31b8b326-3a66-4fe7-8a1d-2aa13a27b857
                else
                  search --no-floppy --fs-uuid --set=root 31b8b326-3a66-4fe7-8a1d-2aa13a27b857
                fi
                linux /vmlinuz-2.6.32-642.1.1.el6.x86_64 ro root=/dev/mapper/vg_euler-LogVol00 rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_LVM_LV=vg_euler/LogVol00 KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet crashkernel=auto
                initrd /initramfs-2.6.32-642.1.1.el6.x86_64.img
        }
        menuentry 'CentOS 6 (2.6.32-642.el6.x86_64) (on /dev/mapper/vg_euler-LogVol00)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-2.6.32-642.el6.x86_64--55629812-dada-464c-ae19-0bdf328f6252' {
                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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  31b8b326-3a66-4fe7-8a1d-2aa13a27b857
                else
                  search --no-floppy --fs-uuid --set=root 31b8b326-3a66-4fe7-8a1d-2aa13a27b857
                fi
                linux /vmlinuz-2.6.32-642.el6.x86_64 ro root=/dev/mapper/vg_euler-LogVol00 rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_LVM_LV=vg_euler/LogVol00 KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
                initrd /initramfs-2.6.32-642.el6.x86_64.img
        }
}

### 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 ###

Here is df map

Code: Select all

root@euler:/etc/apt# df -h
Filesystem Size Used Avail Use% Mounted on
udev 10M 0 10M 0% /dev
tmpfs 101G 98M 101G 1% /run
/dev/dm-0 175G 13G 153G 8% /
tmpfs 253G 0 253G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 253G 0 253G 0% /sys/fs/cgroup
/dev/sdb1 1.1T 615G 429G 59% /DATA
/dev/mapper/vg_euler-debian_boot 453M 60M 366M 15% /boot
/dev/sde1 932G 543G 389G 59% /mnt/ntfsmount
tmpfs 51G 0 51G 0% /run/user/754243
Here is fdisk -l map:

Code: Select all

root@euler:/etc/apt# fdisk -l
Disk /dev/sda: 278.9 GiB, 299439751168 bytes, 584843264 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: 0x00000080

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1026047 1024000 500M 83 Linux
/dev/sda2 1026048 3123199 2097152 1G 82 Linux swap / Solaris
/dev/sda3 3123200 584843263 581720064 277.4G 8e Linux LVM
Disk /dev/sdb: 1.1 TiB, 1199101181952 bytes, 2341994496 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: 0x00000081

Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 2341994495 2341992448 1.1T 83 Linux

Disk /dev/mapper/vg_euler-debian_root: 176.9 GiB, 189964222464 bytes, 371023872 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

Disk /dev/mapper/vg_euler-LogVol00: 100 GiB, 107374182400 bytes, 209715200 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


Disk /dev/mapper/vg_euler-debian_boot: 476 MiB, 499122176 bytes, 974848 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


Disk /dev/sdc: 14.9 GiB, 16005464064 bytes, 31260672 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: 0x30f5270c

Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 0 505855 505856 247M 0 Empty
/dev/sdc2 3900 4731 832 416K ef EFI (FAT-12/16/32)


Disk /dev/sdd: 931.5 GiB, 1000170586112 bytes, 1953458176 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: gpt
Disk identifier: CA4E486D-C51A-4B04-A1C9-90CE2EC3229A

Device Start End Sectors Size Type
/dev/sdd1 2048 1953456127 1953454080 931.5G Microsoft basic data

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Error in upgrade process might make a server unbootable

#2 Post by bw123 »

...
I already have one server (which was created by a different sysadmin, who left)
...
You need help, this person would be the one to call? Ask where the automatic daily backup is and how to get it restored. I can't believe you'd jump into this, and during the holidays, wow...
resigned by AI ChatGPT

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Error in upgrade process might make a server unbootable

#3 Post by llivv »

I agree
That system is ripe with issues
and should not be messed with by a Debian novice..... at any time of year....
lots of issues that can frustrate - Advanced Debain Admins
especially if the goal is to just_say_no_2_systemd
edit: jessie, in my opinion is "The most sysV unfriendly version of Debian"
followed very closely by Stretch!
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

xepan
Posts: 89
Joined: 2018-11-28 06:38

Re: Error in upgrade process might make a server unbootable

#4 Post by xepan »

I don't even understand what the problem is.
You want to upgrade to stretch?
clean up sources.list and sources.list.d anyway. It's a mess.

for stretch, with superfluous lines for src:
https://wiki.debian.org/SourcesList#Exa ... urces.list
Read (at least) the upgrading chapter of the <release notes> http://deb.li/OFVv . In /etc/apt/sources.list, change "jessie" to "stretch" and remove stable-specific lines like jessie-backports. apt-get update && apt-get dist-upgrade. 3rd party repos like <dmo> are known to cause problems with the upgrade.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Error in upgrade process might make a server unbootable

#5 Post by stevepusser »

What guide were you following to upgrade from Debian 8 to 9? It sure doesn't look like the Debian one.

https://www.debian.org/releases/stable/ ... ading.html
MX Linux packager and developer

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Error in upgrade process might make a server unbootable

#6 Post by llivv »

take a look here for starters than tell me BW123 didn't nail it.
That is a businesses server - not a home machine -
- correct no2systemd?
root@euler:/boot# cd /
root@euler:/# ll
total 385K
drwxrwxr-x 2 root root 4.0K Dec 19 13:08 bin/
drwxr-xr-x 4 root root 1.0K Dec 19 15:14 boot/
drwxr-xr-x. 7 root root 4.0K Dec 18 17:19 DATA/
drwxr-xr-x 2 root root 4.0K Aug 24 2016 dell/

drwxr-xr-x 18 root root 3.5K Dec 14 11:22 dev/
drwxr-xr-x 116 root root 12K Dec 19 13:10 etc/
drwxr-xr-x 3 root root 0 Dec 19 15:14 home/
lrwxrwxrwx 1 root root 29 Dec 19 15:13 initrd.img -> boot/initrd.img-4.9.0-8-amd64
lrwxrwxrwx 1 root root 30 Dec 19 15:13 initrd.img.old -> boot/initrd.img-3.16.0-4-amd64
drwxr-xr-x 15 root root 4.0K Dec 19 13:08 lib/
drwxr-xr-x 2 root root 4.0K Jun 21 2017 lib64/
drwxr-xr-x 2 root root 4.0K Nov 17 2016 log/
drwx------ 2 root root 16K Jul 20 2016 lost+found/
drwxr-xr-x 3 root root 4.0K Jul 20 2016 media/
drwxr-xr-x 3 root root 4.0K May 19 2017 mnt/
drwxr-xr-x 3 root root 4.0K Nov 17 2016 network/
drwxr-xr-x 5 root root 4.0K Mar 2 2017 opt/
dr-xr-xr-x 705 root root 0 Sep 16 21:27 proc/
drwx------ 22 root root 4.0K Dec 19 15:17 root/
drwxr-xr-x 22 root root 940 Dec 19 14:55 run/
drwxr-xr-x 2 root root 12K Dec 19 13:08 sbin/
drwxr-xr-x 2 root root 4.0K Jul 20 2016 srv/
dr-xr-xr-x 13 root root 0 Dec 18 17:17 sys/
-rw-r--r-- 1 root root 56 Apr 18 2018 sysinfo.04.log
-rw-r--r-- 1 root root 56 Jul 22 2016 sysinfo.07.log
-rw-r--r-- 1 root root 122 Sep 26 17:45 sysinfo.09.log
-rw-r--r-- 1 root root 67K Mar 12 2017 TARGET

drwxrwxrwt 12 root root 132K Dec 19 15:25 tmp/
drwxr-xr-x 10 root root 4.0K Jul 20 2016 usr/
drwxr-xr-x 12 root root 4.0K Jul 20 2016 var/
lrwxrwxrwx 1 root root 26 Dec 19 15:13 vmlinuz -> boot/vmlinuz-4.9.0-8-amd64
lrwxrwxrwx 1 root root 27 Dec 19 15:13 vmlinuz.old -> boot/vmlinuz-3.16.0-4-amd64
good luck going at that one blindly...
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

no2systemd
Posts: 3
Joined: 2018-12-19 18:07

Re: Error in upgrade process might make a server unbootable

#7 Post by no2systemd »

> That is a businesses server - not a home machine - correct no2systemd?

Thank for your reply and the attempt to help. It is much appreciated.

This is a research server, all valuable data are on special storage system. I have a backup, but as I do not know Debian I am reluctant to reinstall the server.

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Error in upgrade process might make a server unbootable

#8 Post by llivv »

If the previous admin kept the server systemd free (by using sysvinit instead of systemd ) the upgrade path to stretch is not supported.
The colored files and directories in / ( I posted above ) were created by someone and are not normal defaults.
Find out what is in them .... so you will know what the previous admin is talking about when you contact that person.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

xepan
Posts: 89
Joined: 2018-11-28 06:38

Re: Error in upgrade process might make a server unbootable

#9 Post by xepan »

no2systemd wrote: This is a research server, all valuable data are on special storage system. I have a backup, but as I do not know Debian I am reluctant to reinstall the server.
I sure can understand.
In general, the most cases, installing debian is pretty straight forward.
The package-manager too, and it is quite robust, as long you don't add third party repos or apps or such.
Won't help you much that it's straight forward in general, if you are the one for whom it isn't ... (but cleaning up the mess sure seems more difficult. way more difficult, imho).

I'd do a few test installations somewhere, to get the hang of it (assuming you want to do it at all).

xepan
Posts: 89
Joined: 2018-11-28 06:38

Re: Error in upgrade process might make a server unbootable

#10 Post by xepan »

llivv wrote:If the previous admin kept the server systemd free (by using sysvinit instead of systemd ) the upgrade path to stretch is not supported.
lliv: i wouldn't bet, but i think jessie still used sysv, and systemd is default since the actual stable, aka stretch?

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Error in upgrade process might make a server unbootable

#11 Post by llivv »

xepan wrote:lliv: i wouldn't bet, but i think jessie still used sysv, and systemd is default since the actual stable, aka stretch?
Wheezy introduced systemd and that is why LTS was conceived.
Jessy got aggressive about systemd defaults....
Stretch continues systemd dependencies throughout the packaging system that required serious non-default adjustments to run with sysvinit.
Buster is better than stretch for running sysvinit
Sid is better than buster by a hair presently.

I had to hold the xserver-stack in sid to the wheezy version all through the jessie release cycle and part of the stretch cycle if I wanted to run sysvinit in sid. 44 packages held in all by the time I was able to dist-upgrade sid again. iirc ( and it wasn't all that long ago when I finally could upgrade everything in sid again.
I broke sid a few times testing to see if I could upgrade the xserver-stack of packages ..
not fun holding old packages of dbus, libaudit0, udev, xserver-xorg-*, libgl1-mesa-glx, libpam-policykit, passwd, login, and their deps.
Try it sometime - you'll see just how straight forward it is.
Last edited by llivv on 2018-12-20 23:41, edited 4 times in total.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Error in upgrade process might make a server unbootable

#12 Post by llivv »

add to that mess the fact that no2systemd's server has nfs and "some kind" of multidisk virtualization listed in the fdisk -l output
plus the stuff the old admin left in the root directory
to upgrade it would be advisable to take it offline and not expect to put it back in service with the same behavior as it had in the past.
reconfiguring every serverside function that refuses to reconnect.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Error in upgrade process might make a server unbootable

#13 Post by llivv »

xepan wrote: I'd do a few test installations somewhere, to get the hang of it (assuming you want to do it at all).
I was going to suggest that to @no2systemd as well.
I didn't suggest it previously because I understand the possible pitfalls that can occur when dist-upgrading a server showing some of the complications already visible..

A dual boot CentOS/Debian!
which one controls bootup?
why is it dual boot?
what is debian used for?
what is centos used for?
etc.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

no2systemd
Posts: 3
Joined: 2018-12-19 18:07

Re: Error in upgrade process might make a server unbootable

#14 Post by no2systemd »

Thanks everybody, especially xepan who really helped with the strange for me issue of not matching the apt configuration and version. In RHEL yum repositories are ungraded with the version; in Debian this should be done manually, so actually this is a normal situation after that upgrade.

> clean up sources.list and sources.list.d anyway. It's a mess.

Done.

Many people pointed out that things here are disorganized and I was not prepared to the task in hand, which is true :-). But (1) this is not a production server, and (2) we need to fight with the army we have, not with the army we wish. I am the only guy who is interesting in moving some servers to Debian (installed without systemd) here. I feel that with RHEL7 and IBM acquisition of Red Hat creates some openings for Debian in the enterprise environment as it is the only major disro that can be run without systemd. Creation of Debian based Docker images on this server might be a good demo, because it allows to run Debian compiled application on RHEL using container.

But after some thinking I am not sure that switching to the kernel 4.9 (used in Stretch) is a good idea. RHEL 7.4 uses 3.10.0 ( I think), so it might well be that for really complex applications Jessie with its kernel 3.16 is a better fit.

Another problem is that this server does not have Drac, and I am remote. That's why I am interested in the question whether it will reboot, as I still want to explore it further (and today I finally managed to install Docker on it). This only "semi-official" Debian server on real hardware available for me. Otherwise this server is just for researchers who run open source developed on Debian and it is used sporadically, may be once a month for week or so. So a week downtime will not bother anybody too much.

This was also the first installation of Debian for the sysadmin who left (he uses Arch at home and CentOS/RHEL at work), so he is on no help. He was not sure that he will succeed, and that's why he preserved the old CentOS and created dual boot. Which now complicates things. I probably will wipe out CentOS, if the server not reboot. In this case I will mainly need a backup of /etc.

So I have one more narrow question: Will server reboot with the current grub.cfg. I am mostly working on old versions of RHEL with the old grub and good old init. So this is like Chinese to me (BTW this install does use systemd so the upgrade from Jesse to Stretch was legit).

Looks like it will, as those misplaced symlinks are not used anywhere in grub.cfg, but I would like to hear the opinion of a more knowledgeable folk.

After fixing apt sources.list file (the dir sources.list.d was not screwed up) and running apt upgrade I did not find problems with packages via dpkt -C

Here are the two entries extracted from grub.cfg with most leading blanks removed.

The old entry

Code: Select all

root@euler:~# cat menuentry316
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-e09793f8-2cf4-46e9-9253-af2b305605bc' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod lvm
insmod ext2
set root='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'  a5fbd402-7cf1-43f1-9f57-71c1116c783e
else
  search --no-floppy --fs-uuid --set=root a5fbd402-7cf1-43f1-9f57-71c1116c783e
fi
echo    'Loading Linux 3.16.0-4-amd64 ...'
linux   /vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vg_euler-debian_root ro  quiet
echo    'Loading initial ramdisk ...'
initrd  /initrd.img-3.16.0-4-amd64
}
The new entry

Code: Select all

root@euler:~# cat  menuentry49
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-e09793f8-2cf4-46e9-9253-af2b305605bc' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod lvm
insmod ext2
set root='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'  a5fbd402-7cf1-43f1-9f57-71c1116c783e
else
  search --no-floppy --fs-uuid --set=root a5fbd402-7cf1-43f1-9f57-71c1116c783e
fi
echo    'Loading Linux 4.9.0-8-amd64 ...'
linux   /vmlinuz-4.9.0-8-amd64 root=/dev/mapper/vg_euler-debian_root ro  quiet
echo    'Loading initial ramdisk ...'
initrd  /initrd.img-4.9.0-8-amd64
}
The diff

Code: Select all

root@euler:~# diff menuentry316 menuentry49
1c1
< 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-e09793f8-2cf4-46e9-9253-af2b305605bc' {
---
> menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-e09793f8-2cf4-46e9-9253-af2b305605bc' {
14,15c14,15
< echo  'Loading Linux 3.16.0-4-amd64 ...'
< linux /vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vg_euler-debian_root ro  quiet
---
> echo  'Loading Linux 4.9.0-8-amd64 ...'
> linux /vmlinuz-4.9.0-8-amd64 root=/dev/mapper/vg_euler-debian_root ro  quiet
17c17
< initrd        /initrd.img-3.16.0-4-amd64
---
> initrd        /initrd.img-4.9.0-8-amd64

Post Reply