Revision e3f0f84c
Added by Scott Ullrich about 16 years ago
usr/local/www/diag_nanobsd.php | ||
---|---|---|
110 | 110 |
exec("/sbin/fsck_ufs -y /dev/{$ACOMPLETE_PATH}"); |
111 | 111 |
exec("/sbin/mount /dev/ufs/{$AGLABEL_SLICE} /tmp/{$AGLABEL_SLICE}"); |
112 | 112 |
exec("/bin/cp /etc/fstab /tmp/{$AGLABEL_SLICE}/etc/fstab"); |
113 |
$status = exec("sed -i \"\" \"s/pfsense{$AOLD_UFS_ID}/pfsense{$AUFS_ID}/g\" /tmp/{$AGLABEL_SLICE}/etc/fstab");
|
|
113 |
$status = exec("sed -i \"\" \"s/pfsense{$OLD_UFS_ID}/pfsense{$UFS_ID}/g\" /tmp/{$AGLABEL_SLICE}/etc/fstab");
|
|
114 | 114 |
if($status) { |
115 | 115 |
file_notice("UpgradeFailure","Something went wrong when trying to update the fstab entry. Aborting upgrade."); |
116 | 116 |
exec("/sbin/umount /tmp/{$AGLABEL_SLICE}"); |
Also available in: Unified diff
Correctly set fstab