mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 08:00:30 +00:00
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:
parent
e5c45405f0
commit
4a95c0e83f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170320
|
@ -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!");
|
||||
|
|
Loading…
Reference in a new issue