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
27a67513
Commit
27a67513
authored
Jan 31, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tar2fs: Enable secure-boot support for x86_64, add riscv64 support, cleanup
parent
3a31db37
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
tar2fs
bin/tar2fs
+5
-8
No files found.
bin/tar2fs
View file @
27a67513
...
...
@@ -400,17 +400,11 @@ grub-efi)
echo
'GRUB_DISABLE_OS_PROBER=true'
>>
"
$ROOTFS
"
/etc/sysconfig/grub2
chroot
"
$ROOTFS
"
grub-mkconfig
-o
/boot/grub/grub.cfg
case
"
$ARCH
"
in
*
86
)
chroot
"
$ROOTFS
"
grub-install
--target
=
i386-efi
--recheck
\
--removable
--no-uefi-secure-boot
sed
-i
's/initrd16/initrdefi/g'
"
$ROOTFS
/boot/grub/grub.cfg"
sed
-i
's/linux16/linuxefi/g'
"
$ROOTFS
/boot/grub/grub.cfg"
;;
x86_64
)
chroot
"
$ROOTFS
"
grub-install
--target
=
i386-efi
--recheck
\
--removable
--no
-uefi-secure-boot
--removable
-
-uefi-secure-boot
chroot
"
$ROOTFS
"
grub-install
--target
=
x86_64-efi
--recheck
\
--removable
--no
-uefi-secure-boot
--removable
-
-uefi-secure-boot
sed
-i
's/initrd16/initrdefi/g'
"
$ROOTFS
/boot/grub/grub.cfg"
sed
-i
's/linux16/linuxefi/g'
"
$ROOTFS
/boot/grub/grub.cfg"
;;
...
...
@@ -422,6 +416,9 @@ grub-efi)
chroot
"
$ROOTFS
"
grub-install
--target
=
arm-efi
--recheck
\
--removable
--no-uefi-secure-boot
;;
riscv64
)
chroot
"
$ROOTFS
"
grub-install
--target
=
riscv64-efi
--recheck
\
--removable
--no-uefi-secure-boot
esac
sed
-i
'/GRUB_DISABLE_OS_PROBER=true/d'
"
$ROOTFS
/etc/sysconfig/grub2"
;;
...
...
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