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
b468f360
Commit
b468f360
authored
Aug 19, 2011
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-lbu: filter out codepage mount option from fstab
If the codepage option is there mount will fail.
parent
3a7d91b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
setup-lbu.in
setup-lbu.in
+9
-4
No files found.
setup-lbu.in
View file @
b468f360
...
...
@@ -21,11 +21,16 @@ __EOF__
}
get_mnt_line
()
{
mntpoint
=
"
$1
"
mnttab
=
"
$2
"
awk
"
\$
2 ==
\"
$mntpoint
\"
{print
\$
0}"
"
$mnttab
"
local
mntpoint
=
"
$1
"
local
mnttab
=
"
$2
"
# we need filter out codepage=... in mount option as it makes
# mount fail if its there.
awk
"
\$
2 ==
\"
$mntpoint
\"
{
gsub(/,codepage=.*,/, "
,
",
\$
4);
print
\$
0;
}"
"
$mnttab
"
}
is_mounted
()
{
test
-n
"
$(
get_mnt_line
$1
/proc/mounts
)
"
}
...
...
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