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
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
af635540
Commit
af635540
authored
Aug 09, 2011
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix; fdisk no longer accepts "da0" shorthand, it requires
"/dev/da0" notation.
parent
75a48286
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
clientside/tmcc/freebsd/mkextrafs.pl
clientside/tmcc/freebsd/mkextrafs.pl
+3
-2
No files found.
clientside/tmcc/freebsd/mkextrafs.pl
View file @
af635540
...
...
@@ -173,7 +173,7 @@ if ($mounted =~ /^${fsdevice} on (\S*)/) {
# See what the current type is for the partition
#
my
$stype
=
-
1
;
if
(
!
open
(
FD
,
"
fdisk -s
$disk
2>&1|
"))
{
if
(
!
open
(
FD
,
"
fdisk -s
/dev/
$disk
2>&1|
"))
{
die
("
*** $0:
\n
"
.
"
$disk
: could not get partition info
\n
");
}
...
...
@@ -199,6 +199,7 @@ while (<FD>) {
if
(
/^\s*([1-4]):\s+\d+\s+\d+\s+(0x\S\S)\s+/
)
{
my
$part
=
$
1
;
my
$type
=
hex
(
$
2
);
#
# If there is a valid partition on the disk and they are
# using the entire disk without forcing, stop them!
...
...
@@ -253,7 +254,7 @@ if ($usegeom && $slice != 0) {
# partition 1 of the disk.
#
if
(
$slice
==
0
&&
!
$noinit
)
{
mysystem
("
fdisk -I
$disk
");
mysystem
("
fdisk -I
/dev/
$disk
");
}
#
# Otherwise set the partition type to BSD if not already set.
...
...
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