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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170320

View file

@ -363,7 +363,7 @@ installUpgrade(dialogMenuItem *self)
}
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!");