Revision d3324e2c
Added by Renato Botelho almost 8 years ago
tools/scripts/pfSense-nanobsd_to_fullinstall.sh | ||
---|---|---|
87 | 87 |
# Following commands must not fail |
88 | 88 |
set -e |
89 | 89 |
|
90 |
# Move /cf content to / partition |
|
91 |
mkdir -p /mnt/cf |
|
92 |
sed -i '' -e 's,[[:blank:]]/cf, /mnt/cf,' /etc/fstab |
|
93 |
umount -f /cf |
|
94 |
mount /mnt/cf |
|
95 |
cp -Rp /mnt/cf/* /cf |
|
96 |
sync; sync |
|
97 |
umount -f /mnt/cf |
|
98 |
|
|
99 |
# Remove /cf partition |
|
100 |
gpart delete -i 3 ${update_dev} |
|
101 |
|
|
102 |
# Cleanup fstab |
|
103 |
sed -i '' -e '/\/mnt\/cf/d' /etc/fstab |
|
104 |
|
|
90 | 105 |
pkg set -y -o security/pfSense-base-nanobsd:security/pfSense-base \ |
91 | 106 |
pfSense-base-nanobsd |
92 | 107 |
pkg set -y -n pfSense-base-nanobsd:pfsense-base \ |
Also available in: Unified diff
Remove /cf partition and move its content to /cf directory under / partition