-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FreeBSD 11.0 support #492
FreeBSD 11.0 support #492
Conversation
if [ "$major_version" -lt 11 ]; then | ||
env PAGER=/bin/cat $freebsd_update fetch; | ||
env PAGER=/bin/cat $freebsd_update install; | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is freebsd_update deprecated or is this gated just to work around the failures when there's no new updates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No this was just a quick work around that update fails when there are no patches to install. I have done a proper solution for boxcutter/bsd. I'll port that.
Thanks for reminding me.
Can we get this one rebased by chance? Release is right around the corner :D |
I was just about to rebase to the 11.0 beta 1. But I'll think I'll rework it a bit to include my proposal from #558. Any comments on that is very welcome. |
c4bbf92
to
632faf4
Compare
This should be ok now, just waiting for the RELEASE. |
According to the schedule https://www.freebsd.org/releases/11.0R/schedule.html RELEASE builds began on 28 September 2016 Do we want to go ahead and start pushing? |
The release is not out yet, it was delayed. There was a email some days On Sep 30, 2016 6:08 PM, "Seth Thomas" notifications@github.com wrote:
|
See On Sep 30, 2016 6:48 PM, "Rickard von Essen" rickard.von.essen@gmail.com
|
Looking forward to seeing this merged now that FreeBSD 11 is now officially released. |
Updated to FreeBSD 11.0 RELEASE |
@@ -19,7 +19,7 @@ fi | |||
|
|||
# Update FreeBSD | |||
# NOTE: the install action fails if there are no updates so || true it | |||
env PAGER=/bin/cat $freebsd_update fetch; | |||
env PAGER=/bin/cat $freebsd_update fetch || true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
11.0 fails on fetch. I guess it's because there is no mirrors yet. Didn't have time to dig into it.
@@ -44,7 +44,7 @@ vmware-iso|vmware-vmx) | |||
mdconfig -a -t vnode -f $HOME_DIR/freebsd.iso -u 0; | |||
mount -t cd9660 /dev/md0 /tmp/vmfusion; | |||
tar xzf /tmp/vmfusion/vmware-freebsd-tools.tar.gz -C /tmp/vmfusion-archive; | |||
/tmp/vmfusion-archive/vmware-tools-distrib/vmware-install.pl --force-install; | |||
/tmp/vmfusion-archive/vmware-tools-distrib/vmware-install.pl --default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested on VMware Fusion 7.1.3 and had to change this. I don't know what's the correct arg in Fusion 8.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably need to add a check here like we have in other scripts for the vmware version and set the option as appropriate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are some easy lines to copy/pasta - https://github.com/chef/bento/blob/master/scripts/common/vmware.sh#L18-L23
Fixed support for both VMware Fusion 7 and 8 (+). |
I know this started before we implemented DCO (as you can see from the bot) but if you could repush with signed commits (--signoff via git) then I can get this merged. Or I can do it myself and credit you. Either way, let me know and we'll get this merged! |
Changes compared with 10.2: 1) http/freebsd-11.0/install.sh start start and size have been adjusted to work: < gpart add -b 34 -s 94 -t freebsd-boot $DISKSLICE --- > gpart add -b 40 -s 88 -t freebsd-boot $DISKSLICE 2) scripts/freebsd/update.sh temporarly skip freebsd update/install for 11.0 since no updates exists and trying to run the command fails, see the NOTE in the script. pkg is automatically installed on "pkg update" at the end of the script. Signed-off-by: Rickard von Essen <rickard.von.essen@gmail.com>
Signed-off-by: Rickard von Essen <rickard.von.essen@gmail.com>
Signed-off-by: Rickard von Essen <rickard.von.essen@gmail.com>
Signed-off-by: Rickard von Essen <rickard.von.essen@gmail.com>
Signed-off-by: Rickard von Essen <rickard.von.essen@gmail.com>
bf4b183
to
c91f28a
Compare
Fixed the DCO. |
lgtm |
Changes compared with 10.2:
http/freebsd-11.0/install.sh start and size have been adjusted to work:TODO:
minimize.sh
doesn't finish.