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
efe31155
You need to sign in or sign up before continuing.
Commit
efe31155
authored
Jan 03, 2020
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grub: change @linux_suffix@
parent
ed99b96c
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
31 additions
and
30 deletions
+31
-30
00defaults.cfg
features.in/grub/cfg.in/00defaults.cfg
+0
-11
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
85mediacheck.cfg
features.in/grub/cfg.in/85mediacheck.cfg
+2
-2
90memtest_efi.cfg
features.in/grub/cfg.in/90memtest_efi.cfg
+1
-1
01-grub
features.in/grub/stage1/scripts.d/01-grub
+12
-0
No files found.
features.in/grub/cfg.in/00defaults.cfg
View file @
efe31155
...
...
@@ -4,14 +4,3 @@ insmod minicmd
insmod normal
insmod test
set timeout=@timeout@
if [ $grub_cpu = x86_64 -o $grub_cpu = i386 ]; then
if [ $grub_platform = efi ]; then
linux_suffix=efi
elif [ $grub_platform = pc ]; then
linux_suffix=16
else
linux_suffix=
else
linux_suffix=
fi
features.in/grub/cfg.in/20install2.cfg
View file @
efe31155
default='linux'
menuentry 'Install ALT @relname@' --hotkey 'i' --id 'linux' {
linux
$linux_suffix
@boot_path@/vmlinuz changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ vga=@bootvga@ @bootargs@
initrd
$linux_suffix
@boot_path@/full.cz
linux
@linux_suffix@
@boot_path@/vmlinuz changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ vga=@bootvga@ @bootargs@
initrd
@linux_suffix@
@boot_path@/full.cz
}
features.in/grub/cfg.in/25install-vnc-connect.cfg
View file @
efe31155
menuentry 'Install ALT @relname@ (headless with DHCP+VNC client) (edit to set server IP address)' --id 'vncconnect' {
linux
$linux_suffix
@boot_path@/vmlinuz changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ showopts @bootargs@ headless no_alt_virt_keyboard vncconnect=IP
initrd
$linux_suffix
@boot_path@/full.cz
linux
@linux_suffix@
@boot_path@/vmlinuz changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ showopts @bootargs@ headless no_alt_virt_keyboard vncconnect=IP
initrd
@linux_suffix@
@boot_path@/full.cz
}
features.in/grub/cfg.in/25install-vnc-listen.cfg
View file @
efe31155
menuentry 'Install ALT @relname@ (headless with DHCP+VNC) (password VNCPWD)' --id 'vncpasswd' {
linux
$linux_suffix
@boot_path@/vmlinuz changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ showopts @bootargs@ headless no_alt_virt_keyboard vncpassword=VNCPWD
initrd
$linux_suffix
@boot_path@/full.cz
linux
@linux_suffix@
@boot_path@/vmlinuz changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ showopts @bootargs@ headless no_alt_virt_keyboard vncpassword=VNCPWD
initrd
@linux_suffix@
@boot_path@/full.cz
}
features.in/grub/cfg.in/30live.cfg
View file @
efe31155
menuentry 'LiveCD (no hard disk needed)' --id 'live' {
linux
$linux_suffix
@boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@live_size@ stagename=live showopts lowmem vga=@bootvga@ @bootargs@
initrd
$linux_suffix
@boot_path@/full.cz
linux
@linux_suffix@
@boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@live_size@ stagename=live showopts lowmem vga=@bootvga@ @bootargs@
initrd
@linux_suffix@
@boot_path@/full.cz
}
features.in/grub/cfg.in/32live_rw.cfg
View file @
efe31155
menuentry 'LiveCD with sessions support' --id 'session' {
linux
$linux_suffix
@boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@live_size@ stagename=live showopts live_rw vga=@bootvga@ @bootargs@
initrd
$linux_suffix
@boot_path@/full.cz
linux
@linux_suffix@
@boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@live_size@ stagename=live showopts live_rw vga=@bootvga@ @bootargs@
initrd
@linux_suffix@
@boot_path@/full.cz
}
features.in/grub/cfg.in/80rescue.cfg
View file @
efe31155
menuentry 'Rescue LiveCD' --id 'rescue' {
linux
$linux_suffix
@boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ stagename=rescue splash=0 showopts @rescue_bootargs@
initrd
$linux_suffix
@boot_path@/full.cz
linux
@linux_suffix@
@boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ stagename=rescue splash=0 showopts @rescue_bootargs@
initrd
@linux_suffix@
@boot_path@/full.cz
}
features.in/grub/cfg.in/82rescue_rw.cfg
View file @
efe31155
menuentry 'Rescue with sessions support' --id 'rescue_session' {
linux
$linux_suffix
@boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom,label:ALT* ramdisk_size=@rescue_size@ stagename=rescue splash=0 showopts @rescue_bootargs@ live_rw
initrd
$linux_suffix
@boot_path@/full.cz
linux
@linux_suffix@
@boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom,label:ALT* ramdisk_size=@rescue_size@ stagename=rescue splash=0 showopts @rescue_bootargs@ live_rw
initrd
@linux_suffix@
@boot_path@/full.cz
}
features.in/grub/cfg.in/83rescue_fm.cfg
View file @
efe31155
menuentry 'Forensic mode (leave disks alone)' --id 'rescue_forensic' {
linux
$linux_suffix
@boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ splash=0 showopts stagename=rescue @rescue_bootargs@ max_loop=16 forensic hash=@rescue_hash@
initrd
$linux_suffix
@boot_path@/full.cz
linux
@linux_suffix@
@boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ splash=0 showopts stagename=rescue @rescue_bootargs@ max_loop=16 forensic hash=@rescue_hash@
initrd
@linux_suffix@
@boot_path@/full.cz
}
features.in/grub/cfg.in/85mediacheck.cfg
View file @
efe31155
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@
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@
initrd
@linux_suffix@
@boot_path@/full.cz
}
features.in/grub/cfg.in/90memtest_efi.cfg
View file @
efe31155
menuentry 'Memory Test' --id 'memtest' {
linux
$linux_suffix
/EFI/tools/memtest86.efi
linux
@linux_suffix@
/EFI/tools/memtest86.efi
}
features.in/grub/stage1/scripts.d/01-grub
View file @
efe31155
...
...
@@ -61,6 +61,18 @@ if [ -f "$CFG_EFI" ]; then
sed
-i
's,@boot_path@,/EFI/BOOT,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