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
b2cda6aa
Commit
b2cda6aa
authored
18 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
sys: start to fix silly output display and data loss
parent
6b015afc
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
+5
-3
5 additions, 3 deletions
handlers/sys
with
6 additions
and
3 deletions
ChangeLog
+
1
−
0
View file @
b2cda6aa
...
@@ -7,6 +7,7 @@ version 0.9.5 -- unreleased
...
@@ -7,6 +7,7 @@ version 0.9.5 -- unreleased
sys:
sys:
. Fixed typo breaking things for VServers.
. Fixed typo breaking things for VServers.
. Fix bug when vrootdir is on its own partition (Closes: #395928)
. Fix bug when vrootdir is on its own partition (Closes: #395928)
. Hide silly sfdisk error output.
pgsql:
pgsql:
. Support configuring PGSQLUSER for real, and document it a bit
. Support configuring PGSQLUSER for real, and document it a bit
(Closes: #396578)
(Closes: #396578)
...
...
This diff is collapsed.
Click to expand it.
handlers/sys
+
5
−
3
View file @
b2cda6aa
...
@@ -443,17 +443,19 @@ fi
...
@@ -443,17 +443,19 @@ 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
=
`
$SFDISK
-l
|
grep
"^Disk /dev"
|
cut
-d
/
-f2
,3 |
cut
-d
:
-f1
`
devices
=
`
$SFDISK
-l
2>/dev/null |
grep
"^Disk /dev"
|
awk
'{print $2}'
|
cut
-d
:
-f1
`
debug
"
$SFDISK
will try to backup partition tables for devices
$devices
"
if
[
"
$devices
"
==
""
]
;
then
if
[
"
$devices
"
==
""
]
;
then
warning
"No harddisks found"
warning
"No harddisks found"
fi
fi
for
dev
in
$devices
;
do
for
dev
in
$devices
;
do
debug
"
$SFDISK
will try to backup partition tables for device
$dev
"
[
-b
$dev
]
||
continue
[
-b
$dev
]
||
continue
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