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
07559bc9
Commit
07559bc9
authored
Jul 12, 2019
by
Anton Midyukov
Committed by
Michael Shigorin
Aug 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tar2fs: clean fstab
Should be done this way in the first place it seems.
parent
2e70a8f8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tar2fs
bin/tar2fs
+2
-1
No files found.
bin/tar2fs
View file @
07559bc9
...
@@ -225,6 +225,8 @@ KVERSIONS="$(chroot "$ROOTFS" rpm -qa 'kernel-image*' \
...
@@ -225,6 +225,8 @@ KVERSIONS="$(chroot "$ROOTFS" rpm -qa 'kernel-image*' \
[
-n
"
$KVERSIONS
"
]
||
fatal
"unable to deduce kernel version"
[
-n
"
$KVERSIONS
"
]
||
fatal
"unable to deduce kernel version"
rm
-f
.origver
rm
-f
.origver
# clean fstab
sed
-i
"/LABEL=ROOT/d"
"
$ROOTFS
/etc/fstab"
# ...target device too
# ...target device too
sed
-i
"s,
$LOOPROOT
,
$ROOTDEV
,"
"
$ROOTFS
/etc/fstab"
sed
-i
"s,
$LOOPROOT
,
$ROOTDEV
,"
"
$ROOTFS
/etc/fstab"
...
@@ -256,7 +258,6 @@ popd
...
@@ -256,7 +258,6 @@ popd
# for u-boot
# for u-boot
if
[
"
$BOOTLOADER
"
=
"uboot"
]
;
then
if
[
"
$BOOTLOADER
"
=
"uboot"
]
;
then
EXTLINUX_CONF
=
"
$ROOTFS
/boot/extlinux/extlinux.conf"
EXTLINUX_CONF
=
"
$ROOTFS
/boot/extlinux/extlinux.conf"
sed
-i
"/LABEL=ROOT/d"
"
$ROOTFS
/etc/fstab"
sed
-i
"s/LABEL=ROOT/
$ROOTDEV
/g"
"
$EXTLINUX_CONF
"
sed
-i
"s/LABEL=ROOT/
$ROOTDEV
/g"
"
$EXTLINUX_CONF
"
fi
fi
...
...
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