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
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
Ximper Linux
mkimage-profiles
Commits
7de3db56
Commit
7de3db56
authored
Feb 10, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grub: Add support grub-pc for ISO bootloading
It is required to set the BOOTLOADER and BOOT_TYPE variables in grubpcboot.
parent
5e60c91a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
01-grub
features.in/grub/stage1/scripts.d/01-grub
+4
-2
No files found.
features.in/grub/stage1/scripts.d/01-grub
View file @
7de3db56
...
@@ -14,7 +14,7 @@ fi
...
@@ -14,7 +14,7 @@ fi
if
[
-z
"
$GLOBAL_EFI_BOOTLOADER
"
]
;
then
if
[
-z
"
$GLOBAL_EFI_BOOTLOADER
"
]
;
then
case
"
$GLOBAL_BOOTLOADER
"
in
case
"
$GLOBAL_BOOTLOADER
"
in
ieee1275boot
)
;;
ieee1275boot
|grubpcboot
)
;;
*
)
rm
-fr
"
$WORKDIR
/boot"
*
)
rm
-fr
"
$WORKDIR
/boot"
exit
0
;;
exit
0
;;
esac
esac
...
@@ -31,12 +31,14 @@ fi
...
@@ -31,12 +31,14 @@ fi
# number ordering sponsored by shell's pathname expansion
# number ordering sponsored by shell's pathname expansion
case
"
$GLOBAL_BOOTLOADER
"
in
case
"
$GLOBAL_BOOTLOADER
"
in
ieee1275boot
)
ieee1275boot
)
grep
-hv
'^#'
$(
find .in/
*
.cfg
-not
-name
*
_efi.cfg
-not
-name
*
_bios.cfg
)
>
"
$CFG
"
;;
grubpcboot
)
grep
-hv
'^#'
$(
find .in/
*
.cfg
-not
-name
*
_efi.cfg
)
>
"
$CFG
"
;;
grep
-hv
'^#'
$(
find .in/
*
.cfg
-not
-name
*
_efi.cfg
)
>
"
$CFG
"
;;
esac
esac
if
[
"
$GLOBAL_EFI_BOOTLOADER
"
=
"grub-efi"
]
;
then
if
[
"
$GLOBAL_EFI_BOOTLOADER
"
=
"grub-efi"
]
;
then
mkdir
-p
"
$WORKDIR
/EFI/BOOT"
mkdir
-p
"
$WORKDIR
/EFI/BOOT"
grep
-hv
'^#'
$(
find .in/
*
.cfg
)
>
"
$CFG_EFI
"
grep
-hv
'^#'
$(
find .in/
*
.cfg
-not
-name
*
_bios.cfg
)
>
"
$CFG_EFI
"
fi
fi
# there should be DEFAULT directive there (at least for alterator-netinst)
# there should be DEFAULT directive there (at least for alterator-netinst)
...
...
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