liveusb: add qubes-specific configuration

This commit is contained in:
Wojtek Porczyk 2015-07-30 14:19:21 +02:00 committed by Marek Marczykowski-Górecki
parent ac5128e9b3
commit 68a8e1777c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 28 additions and 0 deletions

View File

@ -78,6 +78,30 @@ fi
echo 'File created by kickstart. See systemd-update-done.service(8).' \ echo 'File created by kickstart. See systemd-update-done.service(8).' \
| tee /etc/.updated >/var/.updated | tee /etc/.updated >/var/.updated
#
# setup Qubes
#
# TODO: appmenus
# we won't do `useradd qubes`, since his creation depends of persistent home
# feature; see /etc/rc.d/init.d/livesys
qvm-create --offline-mode --force-root --net --label red sys-net
qvm-create --offline-mode --force-root --proxy --label green sys-firewall
qvm-prefs --offline-mode --force-root --set sys-firewall netvm sys-net
qubes-prefs --set default-netvm sys-firewall
qvm-create --offline-mode --force-root work --label green
qvm-create --offline-mode --force-root banking --label green
qvm-create --offline-mode --force-root personal --label yellow
qvm-create --offline-mode --force-root untrusted --label red
chgrp -R qubes /var/lib/qubes
chmod -R g+w /var/lib/qubes
%end %end

View File

@ -102,6 +102,10 @@ if ! strstr "`cat /proc/cmdline`" nopersistenthome && [ -n "$homedev" ] ; then
action "Mounting persistent /home" mountPersistentHome action "Mounting persistent /home" mountPersistentHome
fi fi
for dev in $(/sbin/lspci -mm -n | sed -ne 's/^\([0-9][0-9]:[0-9][0-9].[0-9]\) "02.*/\1/p'); do
/usr/bin/qvm-pci -a sys-net $dev
done
if [ -n "$configdone" ]; then if [ -n "$configdone" ]; then
exit 0 exit 0
fi fi