update_stage1.sh 467 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. zfs_mount()
  3. {
  4. echo Mount zfs disk
  5. zfs set readonly=off llroot
  6. zfs mount -a
  7. adjkerntz -i
  8. /etc/rc.d/syscons start
  9. nextboot -D
  10. }
  11. mountro=`zfs get -H readonly llroot/ROOT/master | cut -w -f 3`
  12. [ ${mountro} = "on" ] && zfs_mount
  13. usrsrc=${USRSRC:-/usr/src}
  14. etcupdate -p && \
  15. make -C ${usrsrc} installworld && \
  16. etcupdate && \
  17. make -C ${usrsrc} -DBATCH_DELETE_OLD_FILES delete-old && \
  18. make -C ${usrsrc} -DBATCH_DELETE_OLD_FILES delete-old-libs
  19. echo "reboot."