diff options
author | delphij <delphij@FreeBSD.org> | 2007-06-05 05:44:41 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2007-06-05 05:44:41 +0000 |
commit | ee31f13424a2548357554610b397df1323796469 (patch) | |
tree | bb214d5e59e06a7423eeeb95fab25587ee5a2bc7 /usr.sbin | |
parent | 414dfd6eee247a19380c75f94769db87c8b98c9f (diff) | |
download | FreeBSD-src-ee31f13424a2548357554610b397df1323796469.zip FreeBSD-src-ee31f13424a2548357554610b397df1323796469.tar.gz |
Write to slice name instead of directly to the disk device.
This fixes writing boot code upon upgrade.
PR: bin/61587
Submitted by: Nobuyuki Koganemaru <n-kogane syd.odn.ne.jp>
MFC after: 1 month
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sysinstall/installUpgrade.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/installUpgrade.c b/usr.sbin/sysinstall/installUpgrade.c index 1d98b1e..1844c31 100644 --- a/usr.sbin/sysinstall/installUpgrade.c +++ b/usr.sbin/sysinstall/installUpgrade.c @@ -363,7 +363,7 @@ media: } if (extractingBin) - vsystem("disklabel -B `awk '$2~/\\/$/ {print substr($1, 6, 3)}' /etc/fstab`"); + vsystem("disklabel -B `awk '$2~/\\/$/ {print substr($1, 6, 5)}' /etc/fstab`"); msgNotify("First stage of upgrade completed successfully!\n\n" "Next comes stage 2, where we attempt to resurrect your /etc\n" "directory!"); |