Handle kernel properly
This commit is contained in:
		| @@ -33,8 +33,9 @@ prepare_iso() { | |||||||
|     rmdir ${iso_tempdir} &>/dev/null |     rmdir ${iso_tempdir} &>/dev/null | ||||||
|     sudo cp -a grub.cfg ${tempdir}/installer/boot/grub/grub.cfg &>/dev/null || fail "Error copying grub.cfg file." |     sudo cp -a grub.cfg ${tempdir}/installer/boot/grub/grub.cfg &>/dev/null || fail "Error copying grub.cfg file." | ||||||
|     sudo cp -a menu.cfg ${tempdir}/installer/isolinux/menu.cfg &>/dev/null || fail "Error copying menu.cfg file." |     sudo cp -a menu.cfg ${tempdir}/installer/isolinux/menu.cfg &>/dev/null || fail "Error copying menu.cfg file." | ||||||
|     sudo cp -a debootstrap/boot/vmlinuz* ${tempdir}/installer/live/ &>/dev/null || fail "Error copying kernel." |     kernver=$( basename debootstrap/boot/vmlinuz* | head -1 | sed 's/vmlinuz-//' ) | ||||||
|     sudo cp -a debootstrap/boot/initrd.img** ${tempdir}/installer/live/ || fail "Error copying initrd." |     sudo cp -a debootstrap/boot/vmlinuz-${kernver} ${tempdir}/installer/live/vmlinuz &>/dev/null || fail "Error copying kernel." | ||||||
|  |     sudo cp -a debootstrap/boot/initrd.img-${kernver} ${tempdir}/installer/live/initrd.img || fail "Error copying initrd." | ||||||
|     echo "done." |     echo "done." | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								grub.cfg
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								grub.cfg
									
									
									
									
									
								
							| @@ -28,8 +28,8 @@ set loopback="findiso=${iso_path}" | |||||||
| fi | fi | ||||||
|  |  | ||||||
| menuentry "PVC Live Installer" { | menuentry "PVC Live Installer" { | ||||||
|   linux  /live/vmlinuz-4.19.0-5-amd64 boot=live components splash quiet "${loopback}" |   linux  /live/vmlinuz boot=live components splash quiet "${loopback}" | ||||||
|   initrd /live/initrd.img-4.19.0-5-amd64 |   initrd /live/initrd.img | ||||||
| } | } | ||||||
| menuentry "Traditional Debian Installer (graphical)" { | menuentry "Traditional Debian Installer (graphical)" { | ||||||
|   linux  /d-i/gtk/vmlinuz append video=vesa:ywrap,mtrr vga=788 "${loopback}" |   linux  /d-i/gtk/vmlinuz append video=vesa:ywrap,mtrr vga=788 "${loopback}" | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								menu.cfg
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								menu.cfg
									
									
									
									
									
								
							| @@ -3,8 +3,8 @@ MENU title PVC Live Installer | |||||||
| DEFAULT PVC Live Installer | DEFAULT PVC Live Installer | ||||||
| LABEL PVC Live Installer | LABEL PVC Live Installer | ||||||
|   SAY "Booting PVC Live Installer..." |   SAY "Booting PVC Live Installer..." | ||||||
|   linux /live/vmlinuz-4.19.0-5-amd64 |   linux /live/vmlinuz | ||||||
|   APPEND initrd=/live/initrd.img-4.19.0-5-amd64 boot=live components splash quiet |   APPEND initrd=/live/initrd.img boot=live components splash quiet | ||||||
|  |  | ||||||
| LABEL Traditional Debian Installer (graphical) | LABEL Traditional Debian Installer (graphical) | ||||||
|   SAY "Booting Traditional Debian Installer (graphical)..." |   SAY "Booting Traditional Debian Installer (graphical)..." | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user