FreeBSD Bugzilla – Attachment 148553 Details for
Bug 194359
bsdinstall(8) should set active flag in GPT PMBR if not booting using EFI
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix syntax error in previous patch
src.zfsboot.gpart_active_v2.diff (text/plain), 1.03 KB, created by
Allan Jude
on 2014-10-22 00:16:54 UTC
(
hide
)
Description:
Fix syntax error in previous patch
Filename:
MIME Type:
Creator:
Allan Jude
Created:
2014-10-22 00:16:54 UTC
Size:
1.03 KB
patch
obsolete
>Index: usr.sbin/bsdinstall/scripts/zfsboot >=================================================================== >--- usr.sbin/bsdinstall/scripts/zfsboot (revision 273422) >+++ usr.sbin/bsdinstall/scripts/zfsboot (working copy) >@@ -197,6 +197,7 @@ > GPART_CREATE='gpart create -s %s "%s"' > GPART_DESTROY_F='gpart destroy -F "%s"' > GPART_SET_ACTIVE='gpart set -a active -i %s "%s"' >+GPART_SET_DISK_ACTIVE='gpart set -a active "%s"' > GRAID_DELETE='graid delete "%s"' > LN_SF='ln -sf "%s" "%s"' > MKDIR_P='mkdir -p "%s"' >@@ -870,6 +871,17 @@ > zfs$index freebsd-zfs $disk || return $FAILURE > f_eval_catch -d $funcname zpool "$ZPOOL_LABELCLEAR_F" \ > /dev/$disk$targetpart >+ >+ # >+ # 5. Set the pMBR active if booted via BIOS >+ # >+ bootmethod=$(sysctl -n machdep.bootmethod) >+ f_dprintf "machdep.bootmethod=[%s]" "$bootmethod" >+ if [ "$bootmethod" = "BIOS" ]; then >+ f_eval_catch $funcname gpart \ >+ "$GPART_SET_DISK_ACTIVE" $disk || >+ return $FAILURE >+ fi > ;; > > MBR) f_dprintf "$funcname: Creating MBR layout..."
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 194359
:
148547
| 148553