Is it possible to copy standard vmlinuz-3.10..... kernel file to another directory, rename it and load it during booting the system?
I'm on CentOS7 and I have a class task. "Copy vmlinuz-... and initramfs-.... files from /boot to root directory, rename them, add menuentry "Spare kernel" and load it from this new copied kernel file".
I edited /etc/grub.d/40_custom file and added this menuentry.
Copied and renamed files (/kernel and /ramdisk)
I have also made unexecutable /etc/grub.d/10_linux file (chmod 644).
As a result "Main kernel" - no problem, "Spare kernel" gives error
I guess I have to set bootable root in correct way so I tried options 'set root=(hd0,msdos1)' and 'set root=(hd0,msdos2)' (/boot mounted on sda1, but system root ( / ) on sda2, I thought that (hd0,msdos2) will work but it doesn't).
blkid
to get that. – liuqx Jan 11 '19 at 13:38