Skip to content

Commit 4ab32a0

Browse files
committed
Merge branch 'main' of https://github.com/chef/bento
2 parents 2a66ea3 + 308083f commit 4ab32a0

13 files changed

+29
-28
lines changed

.github/workflows/pkr-bld-amazonlinux-arm64.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ jobs:
2626
brew install --cask virtualbox
2727
- name: Install Chef
2828
uses: actionshub/chef-install@3.0.0
29-
with:
30-
version: 24.2.1058
3129
- name: Setup Packer
3230
uses: hashicorp/setup-packer@main
3331
with:

.github/workflows/pkr-bld-amazonlinux-x64.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ jobs:
2727
vagrant --version
2828
- name: Install Chef
2929
uses: actionshub/chef-install@3.0.0
30-
with:
31-
version: 24.2.1058
3230
- name: Setup Packer
3331
uses: hashicorp/setup-packer@main
3432
with:

.github/workflows/pkr-bld-hyperv-x64.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ jobs:
4040
uses: actions/checkout@main
4141
- name: Install Chef
4242
uses: actionshub/chef-install@3.0.0
43-
with:
44-
version: 24.2.1058
4543
- name: Setup Packer
4644
uses: hashicorp/setup-packer@main
4745
with:

.github/workflows/pkr-bld-qemu-x64.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ jobs:
5757
sudo systemctl status libvirtd
5858
- name: Install Chef
5959
uses: actionshub/chef-install@3.0.0
60-
with:
61-
version: 24.2.1058
6260
- name: Setup Packer
6361
uses: hashicorp/setup-packer@main
6462
with:

.github/workflows/pkr-bld-virtualbox-x64.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ jobs:
4848
sudo apt-get install -y software-properties-common vagrant virtualbox-7.1
4949
- name: Install Chef
5050
uses: actionshub/chef-install@3.0.0
51-
with:
52-
version: 24.2.1058
5351
- name: Setup Packer
5452
uses: hashicorp/setup-packer@main
5553
with:

.github/workflows/test-pkr-bld-parallels.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ jobs:
4646
vagrant plugin install vagrant-parallels
4747
- name: Install Chef
4848
uses: actionshub/chef-install@3.0.0
49-
with:
50-
version: 24.2.1058
5149
- name: Setup Packer
5250
uses: hashicorp/setup-packer@main
5351
with:

os_pkrvars/macos/macos-15-aarch64.pkrvars.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ boot_command = [
1414
# Select Your Country and Region
1515
"<leftShiftOn><tab><leftShiftOff><wait><spacebar><wait10s>",
1616
# Transfer your data to this Mac
17-
"<tab><wait><tab><wait><tab><wait><spacebar><wait><tab><wait><tab><wait><spacebar><wait5s>",
17+
"<tab><wait><tab><wait><tab><wait><tab><wait><spacebar><wait><tab><wait><tab><wait><spacebar><wait5s>",
1818
# Written and Spoken Languages
1919
"<leftShiftOn><tab><leftShiftOff><wait><spacebar><wait5s>",
2020
# Accessibility

packer_templates/scripts/_common/build_tools.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ virtualbox-iso|virtualbox-ovf)
4040
;;
4141
*)
4242
echo "Unknown Packer Builder Type >>$PACKER_BUILDER_TYPE<< selected."
43+
exit 0
4344
;;
4445
esac
4546

4647
echo "build tools installed rebooting"
47-
reboot
48+
shutdown -r now
4849
sleep 60

packer_templates/scripts/_common/guest_tools_parallels.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
#!/bin/sh -eux
22

33
# set a default HOME_DIR environment variable if not set
4-
HOME_DIR="${HOME_DIR:-/home/vagrant}"
54
OS_NAME=$(uname -s)
5+
if [ "$OS_NAME" = "Darwin" ]; then
6+
HOME_DIR="/Users/vagrant"
7+
else
8+
HOME_DIR="${HOME_DIR:-/home/vagrant}"
9+
fi
610

711
case "$PACKER_BUILDER_TYPE" in
812
parallels-iso|parallels-pvm|parallels-ipsw)
@@ -12,7 +16,7 @@ parallels-iso|parallels-pvm|parallels-ipsw)
1216
elif [ "$OS_NAME" = "Darwin" ]; then
1317
installer -pkg /Volumes/Parallels\ Tools/Install.app/Contents/Resources/Install.mpkg -target /
1418
# This usually works but gives a failed to eject error
15-
hdiutil detach /Volumes/Parallels\ Tools || echo "exit code $? is suppressed";
19+
hdiutil detach /Volumes/Parallels\ Tools || echo "exit code $? is suppressed"
1620
elif ! ([ "$(uname -m)" = "aarch64" ] && [ -f /etc/os-release ] && (grep -qi 'opensuse' /etc/os-release || grep -qi 'sles' /etc/os-release)); then
1721
mkdir -p /tmp/parallels;
1822
if [ "$(uname -m)" = "aarch64" ] ; then
@@ -35,10 +39,12 @@ parallels-iso|parallels-pvm|parallels-ipsw)
3539
if command -v dnf >/dev/null 2>&1; then
3640
dnf remove -y install checkpolicy selinux-policy-devel gcc kernel-devel kernel-headers make
3741
fi
38-
reboot
42+
shutdown -r now
3943
sleep 60
4044
else
4145
echo "Skipping Parallels Tools installation on aarch64 architecture for opensuse and derivatives"
4246
fi
47+
shutdown -r now
48+
sleep 60
4349
;;
4450
esac

packer_templates/scripts/_common/guest_tools_virtualbox.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
#!/bin/sh -eux
22

33
# set a default HOME_DIR environment variable if not set
4-
HOME_DIR="${HOME_DIR:-/home/vagrant}"
54
OS_NAME=$(uname -s)
5+
if [ "$OS_NAME" = "Darwin" ]; then
6+
HOME_DIR="/Users/vagrant"
7+
else
8+
HOME_DIR="${HOME_DIR:-/home/vagrant}"
9+
fi
610

711
case "$PACKER_BUILDER_TYPE" in
812
virtualbox-iso|virtualbox-ovf)
@@ -32,7 +36,7 @@ virtualbox-iso|virtualbox-ovf)
3236
echo 'ifconfig_vtnet3_name="em3"'
3337
} >> /etc/rc.conf
3438
pw groupadd vboxusers;
35-
pw groupmod vboxusers -m vagrant;
39+
pw groupmod vboxusers -m vagrant
3640
elif [ "$OS_NAME" = "Darwin" ]; then
3741
echo "Nothing to do for $OS_NAME"
3842
exit 0
@@ -83,10 +87,10 @@ virtualbox-iso|virtualbox-ovf)
8387

8488
echo "removing leftover logs"
8589
rm -rf /var/log/vboxadd*
86-
reboot
87-
sleep 60
8890
else
8991
echo "Skipping Virtualbox guest additions installation on aarch64 architecture for opensuse and derivatives"
9092
fi
93+
shutdown -r now
94+
sleep 60
9195
;;
9296
esac

0 commit comments

Comments
 (0)