Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lyz
backupninja
Commits
e6bf696c
Commit
e6bf696c
authored
18 years ago
by
micah
Browse files
Options
Downloads
Patches
Plain Diff
Changed partition check to use sfdisk as its more common
parent
7814d463
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
handlers/sys
+3
-3
3 additions, 3 deletions
handlers/sys
with
4 additions
and
3 deletions
ChangeLog
+
1
−
0
View file @
e6bf696c
...
@@ -52,6 +52,7 @@ version 0.9.4 -- unreleased
...
@@ -52,6 +52,7 @@ version 0.9.4 -- unreleased
. Now forbid to (try to) include /.
. Now forbid to (try to) include /.
sys:
sys:
. Many more system checks were added, thanks to Petr Klíma
. Many more system checks were added, thanks to Petr Klíma
. Changed partition check to use sfdisk as its more common, thanks Rainer Zocholl
ldap:
ldap:
. Compress now happens in-line to save some disk space (Closes: #370778)
. Compress now happens in-line to save some disk space (Closes: #370778)
lib changes
lib changes
...
...
This diff is collapsed.
Click to expand it.
handlers/sys
+
3
−
3
View file @
e6bf696c
...
@@ -449,7 +449,7 @@ fi
...
@@ -449,7 +449,7 @@ fi
# these files can be used to directly partition a disk of the same size.
# these files can be used to directly partition a disk of the same size.
if
[
"
$partitions
"
==
"yes"
]
;
then
if
[
"
$partitions
"
==
"yes"
]
;
then
devices
=
`
$
HWINFO
--disk
|
grep
"Device File
"
|
cut
-d
\
-f
5
`
devices
=
`
$
SFDISK
-l
|
grep
"^Disk /dev
"
|
cut
-d
/
-f
2
,3 |
cut
-d
:
-f1
`
if
[
"
$devices
"
==
""
]
;
then
if
[
"
$devices
"
==
""
]
;
then
warning
"No harddisks found"
warning
"No harddisks found"
fi
fi
...
@@ -458,8 +458,8 @@ if [ "$partitions" == "yes" ]; then
...
@@ -458,8 +458,8 @@ if [ "$partitions" == "yes" ]; then
label
=
${
dev
#/dev/
}
label
=
${
dev
#/dev/
}
label
=
${
label
//\//-
}
label
=
${
label
//\//-
}
outputfile
=
${
partitionsfile
//__star__/
$label
}
outputfile
=
${
partitionsfile
//__star__/
$label
}
debug
"
$SFDISK
$sfdisk_options
-d
$dev
>
$outputfile
"
debug
"
$SFDISK
$sfdisk_options
-d
/
$dev
>
$outputfile
"
$SFDISK
$sfdisk_options
-d
$dev
>
$outputfile
$SFDISK
$sfdisk_options
-d
/
$dev
>
$outputfile
done
done
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment