Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140073749
D34000.id101770.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D34000.id101770.diff
View Options
Index: tools/boot/install-boot.sh
===================================================================
--- tools/boot/install-boot.sh
+++ tools/boot/install-boot.sh
@@ -24,7 +24,7 @@
eval $*
}
-find-part() {
+find_part() {
dev=$1
part=$2
@@ -190,9 +190,9 @@
dev=$1
dst=$2
- s=$(find-part $dev "!239")
+ s=$(find_part $dev "!239")
if [ -z "$s" ] ; then
- s=$(find-part $dev "efi")
+ s=$(find_part $dev "efi")
if [ -z "$s" ] ; then
die "No ESP slice found"
fi
@@ -204,7 +204,7 @@
dev=$1
dst=$2
- idx=$(find-part $dev "efi")
+ idx=$(find_part $dev "efi")
if [ -z "$idx" ] ; then
die "No ESP partition found"
fi
@@ -215,7 +215,7 @@
dev=$1
dst=$2
- idx=$(find-part $dev "freebsd-boot")
+ idx=$(find_part $dev "freebsd-boot")
if [ -z "$idx" ] ; then
die "No freebsd-boot partition found"
fi
@@ -235,7 +235,7 @@
dev=$1
dst=$2
- idx=$(find-part $dev "freebsd-boot")
+ idx=$(find_part $dev "freebsd-boot")
if [ -z "$idx" ] ; then
die "No freebsd-boot partition found"
fi
@@ -256,7 +256,7 @@
dst=$2
doit gpart bootcode -b ${mbr0} ${dev}
- s=$(find-part $dev "freebsd")
+ s=$(find_part $dev "freebsd")
if [ -z "$s" ] ; then
die "No freebsd slice found"
fi
@@ -277,11 +277,11 @@
dst=$2
# search to find the BSD slice
- s=$(find-part $dev "freebsd")
+ s=$(find_part $dev "freebsd")
if [ -z "$s" ] ; then
die "No BSD slice found"
fi
- idx=$(find-part ${dev}s${s} "freebsd-zfs")
+ idx=$(find_part ${dev}s${s} "freebsd-zfs")
if [ -z "$idx" ] ; then
die "No freebsd-zfs slice found"
fi
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 20, 9:29 PM (19 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27101226
Default Alt Text
D34000.id101770.diff (1 KB)
Attached To
Mode
D34000: install-boot.sh: Avoid - in function names for POSIX compatibility
Attached
Detach File
Event Timeline
Log In to Comment