78a903b1f7
- New refactor allow qubuntu to share most of Debian's codebase - Installation now more closely mimiks Debian's installation methods - Added a shared functions lib named distributions.sh - Any portions of Whonix that may need to be updatable have been moved to a new package named qubes-whonix which will be updatable via Debian package manager. qubes-whonix is also added as part of installation process
41 lines
1.5 KiB
Bash
Executable File
41 lines
1.5 KiB
Bash
Executable File
#!/bin/bash -e
|
|
# vim: set ts=4 sw=4 sts=4 et :
|
|
|
|
source "${SCRIPTSDIR}/vars.sh"
|
|
source "${SCRIPTSDIR}/distribution.sh"
|
|
|
|
##### '-------------------------------------------------------------------------
|
|
debug ' Installing qubes-whonix package(s)'
|
|
##### '-------------------------------------------------------------------------
|
|
|
|
|
|
# If .prepared_debootstrap has not been completed, don't continue
|
|
exitOnNoFile "${INSTALLDIR}/${TMPDIR}/.prepared_qubes" "prepared_qubes installataion has not completed!... Exiting"
|
|
|
|
# Create system mount points.
|
|
prepareChroot
|
|
|
|
|
|
#### '--------------------------------------------------------------------------
|
|
info ' Trap ERR and EXIT signals and cleanup (umount)'
|
|
#### '--------------------------------------------------------------------------
|
|
trap cleanup ERR
|
|
trap cleanup EXIT
|
|
|
|
#### '--------------------------------------------------------------------------
|
|
info ' Installing qubes-whonix and other required packages'
|
|
#### '--------------------------------------------------------------------------
|
|
# whonix-setup-wizard expects '/usr/local/share/applications' directory to exist
|
|
chroot mkdir -p '/usr/local/share/applications' # whonix-setup-wizard needs this
|
|
|
|
installQubesRepo
|
|
aptInstall python-guimessages whonix-setup-wizard qubes-whonix
|
|
uninstallQubesRepo
|
|
|
|
#### '--------------------------------------------------------------------------
|
|
info ' Cleanup'
|
|
#### '--------------------------------------------------------------------------
|
|
umount_all "${INSTALLDIR}/" || true
|
|
trap - ERR EXIT
|
|
trap
|