Allow chroot in target and install blx2 firmware

This commit is contained in:
Joshua Boniface 2023-09-01 15:41:55 -04:00
parent a908082274
commit 71009934b6
1 changed files with 9 additions and 1 deletions

View File

@ -9,7 +9,7 @@ logfile="/tmp/pvc-install.log"
debrelease="buster"
debmirror="http://debian.mirror.rafal.ca/debian"
debpkglist="lvm2,parted,gdisk,grub-pc,grub-efi-amd64,linux-image-amd64,sudo,vim,gpg,gpg-agent,aptitude,openssh-server,vlan,ifenslave,python,python2,python3,ca-certificates,ntp"
suppkglist="firmware-linux,firmware-linux-nonfree"
suppkglist="firmware-linux,firmware-linux-nonfree,firmware-bnx2,firmware-bnx2x"
# DANGER - THIS PASSWORD IS PUBLIC
# It should be used ONLY immediately after booting the PVC node in a SECURE environment
@ -420,6 +420,14 @@ if [[ ${edit_ifaces} == 'y' || ${edit_ifaces} == 'Y' ]]; then
fi
echo
echo "Launch a chroot shell in the target environment? [y/N]"
read launch_chroot
if [[ ${launch_chroot} == 'y' || ${edit_ifaces} == 'Y' ]]; then
echo "Type 'exit' or Ctrl+D to exit chroot."
chroot ${target} /bin/bash
fi
echo
cleanup
echo "-------------------------------------------------------------------------------------"