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
This commit is contained in:
Xin LI 2007-06-05 05:44:41 +00:00
parent e5c45405f0
commit 4a95c0e83f

View File

@ -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!");