Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
5e55485d
Commit
5e55485d
authored
Aug 19, 2011
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-lbu: use UUID when UUID was used as alpine_dev
parent
b468f360
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
setup-lbu.in
setup-lbu.in
+12
-2
No files found.
setup-lbu.in
View file @
5e55485d
...
...
@@ -23,10 +23,20 @@ __EOF__
get_mnt_line
()
{
local
mntpoint
=
"
$1
"
local
mnttab
=
"
$2
"
local
media
=
${
mntpoint
#/media/
}
local
uuid
=
# replace the device with UUID since the device is in /proc/mounts
# and we want the UUID in fstab
if
[
"
${
media
#UUID
}
"
!=
"
$media
"
]
;
then
uuid
=
"
$media
"
fi
# we need filter out codepage=... in mount option as it makes
# mount fail if its there.
awk
"
\$
2 ==
\"
$mntpoint
\"
{
gsub(/,codepage=.*,/, "
,
",
\$
4);
awk
-v
uuid
=
"
$uuid
"
"
\$
2 ==
\"
$mntpoint
\"
{
if (uuid)
\$
1 = uuid;
gsub(/,codepage=.*,/,
\"
,
\"
,
\$
4);
print
\$
0;
}"
"
$mnttab
"
}
...
...
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