Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anton Palgunov
mkimage-profiles
Commits
aa12c024
Commit
aa12c024
authored
Feb 09, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grub: Use variable $linux_suffix
Needed for use one grub.cfg config for all grub platforms.
parent
83109b6b
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
24 additions
and
32 deletions
+24
-32
00defaults.cfg
features.in/grub/cfg.in/00defaults.cfg
+4
-0
20install2.cfg
features.in/grub/cfg.in/20install2.cfg
+2
-2
25install-vnc-connect.cfg
features.in/grub/cfg.in/25install-vnc-connect.cfg
+2
-2
25install-vnc-listen.cfg
features.in/grub/cfg.in/25install-vnc-listen.cfg
+2
-2
30live.cfg
features.in/grub/cfg.in/30live.cfg
+2
-2
32live_rw.cfg
features.in/grub/cfg.in/32live_rw.cfg
+2
-2
80rescue.cfg
features.in/grub/cfg.in/80rescue.cfg
+2
-2
82rescue_rw.cfg
features.in/grub/cfg.in/82rescue_rw.cfg
+2
-2
83rescue_fm.cfg
features.in/grub/cfg.in/83rescue_fm.cfg
+2
-2
84rescue_remote.cfg
features.in/grub/cfg.in/84rescue_remote.cfg
+2
-2
85mediacheck.cfg
features.in/grub/cfg.in/85mediacheck.cfg
+2
-2
01-grub
features.in/grub/stage1/scripts.d/01-grub
+0
-12
No files found.
features.in/grub/cfg.in/00defaults.cfg
View file @
aa12c024
...
...
@@ -4,4 +4,8 @@ insmod minicmd
insmod normal
insmod test
set timeout=@timeout@
if [ "$grub_platform" = "efi" -a "$grub_cpu" = "x86_64" ]; then
set linux_suffix='efi'
fi
if [ "$grub_platform" = "pc" ]; then set linux_suffix='16'; fi
if [ ! "$lang" ]; then lang=@LOCALE@; fi
features.in/grub/cfg.in/20install2.cfg
View file @
aa12c024
...
...
@@ -3,7 +3,7 @@ default='linux'
menuentry $"Install "'@distro@' --hotkey 'i' --id 'linux' {
echo $"Loading Linux vmlinuz$KFLAVOUR ..."
linux
@linux_suffix@
@boot_path@/vmlinuz$KFLAVOUR changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ vga=@bootvga@ @bootargs@ @efi_bootargs@ lang=$lang
linux
$linux_suffix
@boot_path@/vmlinuz$KFLAVOUR changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ vga=@bootvga@ @bootargs@ @efi_bootargs@ lang=$lang
echo $"Loading initial ramdisk ..."
initrd
@linux_suffix@
@boot_path@/full$KFLAVOUR.cz
initrd
$linux_suffix
@boot_path@/full$KFLAVOUR.cz
}
features.in/grub/cfg.in/25install-vnc-connect.cfg
View file @
aa12c024
menuentry $"VNC install "'@distro@'$" (edit to set server IP address)" --id 'vncconnect' {
linux
@linux_suffix@
@boot_path@/vmlinuz$KFLAVOUR changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ showopts @bootargs@ @efi_bootargs@ headless no_alt_virt_keyboard vncconnect=IP lang=$lang
initrd
@linux_suffix@
@boot_path@/full$KFLAVOUR.cz
linux
$linux_suffix
@boot_path@/vmlinuz$KFLAVOUR changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ showopts @bootargs@ @efi_bootargs@ headless no_alt_virt_keyboard vncconnect=IP lang=$lang
initrd
$linux_suffix
@boot_path@/full$KFLAVOUR.cz
}
features.in/grub/cfg.in/25install-vnc-listen.cfg
View file @
aa12c024
menuentry $"VNC install "'@distro@'$" (edit to set password and connect here)" --id 'vncpasswd' {
linux
@linux_suffix@
@boot_path@/vmlinuz$KFLAVOUR changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ showopts @bootargs@ @efi_bootargs@ headless no_alt_virt_keyboard vncpassword=VNCPWD lang=$lang
initrd
@linux_suffix@
@boot_path@/full$KFLAVOUR.cz
linux
$linux_suffix
@boot_path@/vmlinuz$KFLAVOUR changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ showopts @bootargs@ @efi_bootargs@ headless no_alt_virt_keyboard vncpassword=VNCPWD lang=$lang
initrd
$linux_suffix
@boot_path@/full$KFLAVOUR.cz
}
features.in/grub/cfg.in/30live.cfg
View file @
aa12c024
menuentry $"LiveCD (no hard disk needed)" --id 'live' {
echo $"Loading Linux vmlinuz$KFLAVOUR ..."
linux
@linux_suffix@
@boot_path@/vmlinuz$KFLAVOUR changedisk fastboot live automatic=method:cdrom ramdisk_size=@live_size@ stagename=live showopts lowmem vga=@bootvga@ @bootargs@ @efi_bootargs@ lang=$lang
linux
$linux_suffix
@boot_path@/vmlinuz$KFLAVOUR changedisk fastboot live automatic=method:cdrom ramdisk_size=@live_size@ stagename=live showopts lowmem vga=@bootvga@ @bootargs@ @efi_bootargs@ lang=$lang
echo $"Loading initial ramdisk ..."
initrd
@linux_suffix@
@boot_path@/full$KFLAVOUR.cz
initrd
$linux_suffix
@boot_path@/full$KFLAVOUR.cz
}
features.in/grub/cfg.in/32live_rw.cfg
View file @
aa12c024
menuentry $"LiveCD with sessions support" --id 'session' {
echo $"Loading Linux vmlinuz$KFLAVOUR ..."
linux
@linux_suffix@
@boot_path@/vmlinuz$KFLAVOUR changedisk fastboot live automatic=method:cdrom ramdisk_size=@live_size@ stagename=live showopts live_rw vga=@bootvga@ @bootargs@ @efi_bootargs@ lang=$lang
linux
$linux_suffix
@boot_path@/vmlinuz$KFLAVOUR changedisk fastboot live automatic=method:cdrom ramdisk_size=@live_size@ stagename=live showopts live_rw vga=@bootvga@ @bootargs@ @efi_bootargs@ lang=$lang
echo $"Loading initial ramdisk ..."
initrd
@linux_suffix@
@boot_path@/full$KFLAVOUR.cz
initrd
$linux_suffix
@boot_path@/full$KFLAVOUR.cz
}
features.in/grub/cfg.in/80rescue.cfg
View file @
aa12c024
menuentry $"Rescue LiveCD" --id 'rescue' {
echo $"Loading Linux vmlinuz$KFLAVOUR ..."
linux
@linux_suffix@
@boot_path@/vmlinuz$KFLAVOUR changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ stagename=rescue splash=0 showopts @rescue_bootargs@ @efi_bootargs@
linux
$linux_suffix
@boot_path@/vmlinuz$KFLAVOUR changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ stagename=rescue splash=0 showopts @rescue_bootargs@ @efi_bootargs@
echo $"Loading initial ramdisk ..."
initrd
@linux_suffix@
@boot_path@/full$KFLAVOUR.cz
initrd
$linux_suffix
@boot_path@/full$KFLAVOUR.cz
}
features.in/grub/cfg.in/82rescue_rw.cfg
View file @
aa12c024
menuentry $"Rescue with sessions support" --id 'rescue_session' {
echo $"Loading Linux vmlinuz$KFLAVOUR ..."
linux
@linux_suffix@
@boot_path@/vmlinuz$KFLAVOUR changedisk fastboot live automatic=method:cdrom,label:ALT* ramdisk_size=@rescue_size@ stagename=rescue splash=0 showopts @rescue_bootargs@ @efi_bootargs@ live_rw
linux
$linux_suffix
@boot_path@/vmlinuz$KFLAVOUR changedisk fastboot live automatic=method:cdrom,label:ALT* ramdisk_size=@rescue_size@ stagename=rescue splash=0 showopts @rescue_bootargs@ @efi_bootargs@ live_rw
echo $"Loading initial ramdisk ..."
initrd
@linux_suffix@
@boot_path@/full$KFLAVOUR.cz
initrd
$linux_suffix
@boot_path@/full$KFLAVOUR.cz
}
features.in/grub/cfg.in/83rescue_fm.cfg
View file @
aa12c024
menuentry $"Forensic mode (leave disks alone)" --id 'rescue_forensic' {
echo $"Loading Linux vmlinuz$KFLAVOUR ..."
linux
@linux_suffix@
@boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ splash=0 showopts stagename=rescue @rescue_bootargs@ @efi_bootargs@ max_loop=16 forensic hash=@rescue_hash@
linux
$linux_suffix
@boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ splash=0 showopts stagename=rescue @rescue_bootargs@ @efi_bootargs@ max_loop=16 forensic hash=@rescue_hash@
echo $"Loading initial ramdisk ..."
initrd
@linux_suffix@
@boot_path@/full.cz
initrd
$linux_suffix
@boot_path@/full.cz
}
features.in/grub/cfg.in/84rescue_remote.cfg
View file @
aa12c024
menuentry $"Rescue with remote SSH access (DHCP)" --id 'rescue_remote' {
linux
@linux_suffix@
@boot_path@/vmlinuz$KFLAVOUR changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ splash=0 showopts stagename=rescue @rescue_bootargs@ @efi_bootargs@ max_loop=16 ip=dhcp port=22 rootpw=AUTO hash=@rescue_hash@
linux
$linux_suffix
@boot_path@/vmlinuz$KFLAVOUR changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ splash=0 showopts stagename=rescue @rescue_bootargs@ @efi_bootargs@ max_loop=16 ip=dhcp port=22 rootpw=AUTO hash=@rescue_hash@
echo $"Loading initial ramdisk ..."
initrd
@linux_suffix@
@boot_path@/full$KFLAVOUR.cz
initrd
$linux_suffix
@boot_path@/full$KFLAVOUR.cz
}
features.in/grub/cfg.in/85mediacheck.cfg
View file @
aa12c024
menuentry $"Check this media for defects" --id 'mediachk' {
linux
@linux_suffix@
@boot_path@/vmlinuz changedisk live quiet lowmem automatic=method:cdrom mediacheck=1 stagename=mediacheck showopts @bootargs@ @efi_bootargs@
initrd
@linux_suffix@
@boot_path@/full.cz
linux
$linux_suffix
@boot_path@/vmlinuz changedisk live quiet lowmem automatic=method:cdrom mediacheck=1 stagename=mediacheck showopts @bootargs@ @efi_bootargs@
initrd
$linux_suffix
@boot_path@/full.cz
}
features.in/grub/stage1/scripts.d/01-grub
View file @
aa12c024
...
...
@@ -83,18 +83,6 @@ if [ -f "$CFG_EFI" ]; then
sed
-i
"s, @efi_bootargs@,,g"
"
$CFG_EFI
"
fi
# change @linux_suffix@
case
"
$GLOBAL_ARCH
"
in
i586|x86_64
)
[
!
-f
"
$CFG
"
]
||
sed
-i
's/@linux_suffix@/16/g'
"
$CFG
"
[
!
-f
"
$CFG_EFI
"
]
||
sed
-i
's/@linux_suffix@/efi/g'
"
$CFG_EFI
"
;;
*
)
[
!
-f
"
$CFG
"
]
||
sed
-i
's/@linux_suffix@//g'
"
$CFG
"
[
!
-f
"
$CFG_EFI
"
]
||
sed
-i
's/@linux_suffix@//g'
"
$CFG_EFI
"
;;
esac
# snippets are not going into the actual image
if
[
"
$DEBUG
"
!=
2
]
;
then
rm
-r
.in/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment