X-Git-Url: http://popeye.lapinbilly.eu/git/?p=fbsd-stable-mgmt.git;a=blobdiff_plain;f=update_stage1.sh;fp=update_stage1.sh;h=c4a04422d12c618671af0c54125a3eae7e15e38f;hp=0000000000000000000000000000000000000000;hb=a334edfe5246e8c012e02fac0db3b8b0e0ecfa23;hpb=bcfab84067673d2619215e6660d4f5357f16fc87 diff --git a/update_stage1.sh b/update_stage1.sh new file mode 100755 index 0000000..c4a0442 --- /dev/null +++ b/update_stage1.sh @@ -0,0 +1,20 @@ +#!/bin/sh +zfs_mount() +{ +echo Mount zfs disk +zfs set readonly=off llroot +zfs mount -a +adjkerntz -i +/etc/rc.d/syscons start +} + + +mountro=`zfs get -H readonly llroot/ROOT/master | cut -w -f 3` +[ ${mountro} = "on" ] && zfs_mount +mergemaster -p +cd /usr/src && \ +make installworld && \ +mergemaster -iF && \ +make delete-old && \ +echo "reboot to delete old libs" +