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
b07db070
Commit
b07db070
authored
Sep 09, 2020
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tar2fs: Set UUID in extlinux.conf, if exist
extlinux.conf is not tied to the u-boot bootloader and always needed replace Label with the UUID if the file exist.
parent
576a58d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tar2fs
bin/tar2fs
+4
-2
No files found.
bin/tar2fs
View file @
b07db070
...
@@ -360,11 +360,13 @@ popd
...
@@ -360,11 +360,13 @@ popd
[
-f
"
$ROOTFS
/boot/efi/cmdline.txt"
]
&&
[
-f
"
$ROOTFS
/boot/efi/cmdline.txt"
]
&&
sed
-i
"s/LABEL=ROOT/
$ROOTDEV
/"
"
$ROOTFS
/boot/efi/cmdline.txt"
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"
# Setup bootloader
# Setup bootloader
case
"
$BOOTLOADER
"
in
case
"
$BOOTLOADER
"
in
uboot
)
uboot
)
EXTLINUX_CONF
=
"
$ROOTFS
/boot/extlinux/extlinux.conf"
sed
-i
"s/LABEL=ROOT/
$ROOTDEV
/g"
"
$EXTLINUX_CONF
"
parting
set
"
$ROOTPART
"
boot on
parting
set
"
$ROOTPART
"
boot on
;;
;;
lilo
)
lilo
)
...
...
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