test: improve vm image generation
This commit is contained in:
parent
b4311dac65
commit
3393d8f649
9 changed files with 47 additions and 8 deletions
|
|
@ -1,6 +1,9 @@
|
|||
#cloud-config
|
||||
|
||||
hostname: ${hostname}
|
||||
locale: en_IE
|
||||
keyboard:
|
||||
layout: ie
|
||||
|
||||
ssh_pwauth: true
|
||||
users:
|
||||
|
|
@ -45,6 +48,7 @@ packages:
|
|||
|
||||
# Install Applications
|
||||
- firefox
|
||||
- chromium
|
||||
- terminator
|
||||
|
||||
runcmd:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
#cloud-config
|
||||
|
||||
hostname: ${hostname}
|
||||
locale: en_IE
|
||||
keyboard:
|
||||
layout: ie
|
||||
|
||||
ssh_pwauth: true
|
||||
users:
|
||||
|
|
@ -38,14 +41,14 @@ packages:
|
|||
- networkmanager
|
||||
|
||||
# Install Graphical Interface
|
||||
- xorg-server
|
||||
- plasma
|
||||
- plasma-meta
|
||||
- plasma-wayland-session
|
||||
- sddm
|
||||
- konsole
|
||||
- kde-applications
|
||||
|
||||
# Install Applications
|
||||
- firefox
|
||||
- chromium
|
||||
- terminator
|
||||
|
||||
runcmd:
|
||||
|
|
|
|||
|
|
@ -61,7 +61,9 @@ clean_arch() {
|
|||
_msg "Pacman clean configuration"
|
||||
|
||||
pacman -Syu --noconfirm
|
||||
pacman -Rsccn --noconfirm "$(pacman -Qdtq)"
|
||||
pacman -Qdtq | while IFS='' read -r pkg; do
|
||||
pacman -Rsccn --noconfirm "$pkg"
|
||||
done
|
||||
pacman -Scc --noconfirm
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ readonly DISTRIBUTION
|
|||
main() {
|
||||
install -dm0750 -o "$SUDO_USER" -g "$SUDO_USER" "/home/$SUDO_USER/Projects/" "/home/$SUDO_USER/.config/"
|
||||
install -Dm0644 -o "$SUDO_USER" -g "$SUDO_USER" $SRC/.bash_aliases "/home/$SUDO_USER/.bash_aliases"
|
||||
install -Dm0644 -o "$SUDO_USER" -g "$SUDO_USER" $SRC/monitors.xml "/home/$SUDO_USER/.config/monitors.xml"
|
||||
install -Dm0644 -o "$SUDO_USER" -g "$SUDO_USER" $SRC/htoprc "/home/$SUDO_USER/.config/htop/htoprc"
|
||||
install -Dm0644 $SRC/parser.conf /etc/apparmor/parser.conf
|
||||
install -Dm0644 $SRC/site.local /etc/apparmor.d/tunables/multiarch.d/site.local
|
||||
|
|
@ -28,7 +29,7 @@ main() {
|
|||
debian | ubuntu)
|
||||
apt-get update -y
|
||||
apt-get install -y apparmor-profiles build-essential config-package-dev \
|
||||
debhelper devscripts htop qemu-guest-agent rsync vim
|
||||
debhelper devscripts htop rsync vim
|
||||
dpkg -i $SRC/apparmor.d_*_all.deb
|
||||
;;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
#cloud-config
|
||||
|
||||
hostname: ${hostname}
|
||||
locale: en_IE
|
||||
keyboard:
|
||||
layout: ie
|
||||
|
||||
ssh_pwauth: true
|
||||
users:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue