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
edd7cced
Commit
edd7cced
authored
Jul 19, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tar2fs: Mark root partition as bootable if extlinux.conf is present
Booting from extlinux.conf is preferred over booting in EFI mode.
parent
1fcd9baa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
tar2fs
bin/tar2fs
+9
-5
No files found.
bin/tar2fs
View file @
edd7cced
...
...
@@ -361,14 +361,18 @@ popd
sed
-i
"s/LABEL=ROOT/
$ROOTDEV
/"
"
$ROOTFS
/boot/efi/cmdline.txt"
# Update extlinux.conf
[
-f
"
$ROOTFS
/boot/extlinux/extlinux.conf"
]
&&
sed
-i
"s/LABEL=ROOT/
$ROOTDEV
/g"
"
$ROOTFS
/boot/extlinux/extlinux.conf"
if
[
-f
"
$ROOTFS
/boot/extlinux/extlinux.conf"
]
;
then
sed
-i
"s/LABEL=ROOT/
$ROOTDEV
/g"
"
$ROOTFS
/boot/extlinux/extlinux.conf"
if
[
"
$PARTTABLE
"
==
gpt
]
;
then
parting
set
"
$ROOTPART
"
legacyboot on
fi
if
[
"
$PARTTABLE
"
==
msdos
]
;
then
parting
set
"
$ROOTPART
"
boot on
fi
fi
# Setup bootloader
case
"
$BOOTLOADER
"
in
uboot
)
parting
set
"
$ROOTPART
"
boot on
;;
lilo
)
# configure and install bootloader
REGEXP
=
'^.*: ([0-9]+) cylinders, ([0-9]+) heads, ([0-9]+) sectors/track*$'
...
...
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