Skip to content

Commit

Permalink
Adjust workdir path for freebsd-update
Browse files Browse the repository at this point in the history
  • Loading branch information
mrclksr committed Oct 29, 2019
1 parent a36a6f7 commit 3f26dee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/usr/libexec/nomadbsd-install
Expand Up @@ -289,6 +289,8 @@ commit() {
sed -i .bak -E '/^geli.*/d' /mnt/etc/rc.conf
sysrc -f /mnt/etc/rc.conf -x gsched_enable
sysrc -f /mnt/etc/rc.conf -x local_startup
sed -i '' 's,^WorkDir.*,WorkDir /var/db/freebsd-update,' \
/mnt/etc/freebsd-update.conf
if [ ${fstype} = "ZFS" ]; then
sysrc -f /mnt/etc/rc.conf zfs_enable=YES
fi
Expand Down
2 changes: 2 additions & 0 deletions config/usr/libexec/nomadbsd-install.mac
Expand Up @@ -261,6 +261,8 @@ commit() {
sed -i .bak -E '/^geli.*/d' /mnt/etc/rc.conf
sysrc -f /mnt/etc/rc.conf -x gsched_enable
sysrc -f /mnt/etc/rc.conf -x local_startup
sed -i '' 's,^WorkDir.*,WorkDir /var/db/freebsd-update,' \
/mnt/etc/freebsd-update.conf
if [ ${fstype} = "ZFS" ]; then
sysrc -f /mnt/etc/rc.conf zfs_enable=YES
fi
Expand Down

1 comment on commit 3f26dee

@mrclksr
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #19

Please sign in to comment.