Moved depends to packages, properly setup services, users and groups
This commit is contained in:
parent
b4fb6ea066
commit
026f49b6d8
2 changed files with 16 additions and 19 deletions
|
@ -31,7 +31,7 @@ echo " --> Installing recommended qubes apps"
|
||||||
"apk add qubes-vm-recommended"
|
"apk add qubes-vm-recommended"
|
||||||
|
|
||||||
echo " --> Updating template fstab file..."
|
echo " --> Updating template fstab file..."
|
||||||
cat >> "${INSTALLDIR}/etc/fstab" <<EOF
|
cat > "${INSTALLDIR}/etc/fstab" <<EOF
|
||||||
#
|
#
|
||||||
# /etc/fstab: static file system information
|
# /etc/fstab: static file system information
|
||||||
#
|
#
|
||||||
|
@ -53,15 +53,23 @@ EOF
|
||||||
echo " --> Configuring system to our preferences..."
|
echo " --> Configuring system to our preferences..."
|
||||||
# add hcv0 to inittab
|
# add hcv0 to inittab
|
||||||
echo "hvc0::respawn:/sbin/getty -L hvc0 115200 vt220" >> "$INSTALLDIR"/etc/inittab
|
echo "hvc0::respawn:/sbin/getty -L hvc0 115200 vt220" >> "$INSTALLDIR"/etc/inittab
|
||||||
# add group qubes and user
|
|
||||||
"${TEMPLATE_CONTENT_DIR}/alpine-chroot" "$INSTALLDIR" addgroup user
|
# user and groups
|
||||||
"${TEMPLATE_CONTENT_DIR}/alpine-chroot" "$INSTALLDIR" addgroup qubes
|
"${TEMPLATE_CONTENT_DIR}/alpine-chroot" "$INSTALLDIR" addgroup qubes
|
||||||
# add user:user
|
"${TEMPLATE_CONTENT_DIR}/alpine-chroot" "$INSTALLDIR" addgroup user
|
||||||
"${TEMPLATE_CONTENT_DIR}/alpine-chroot" "$INSTALLDIR" adduser -D -S user -g qubes -G user
|
"${TEMPLATE_CONTENT_DIR}/alpine-chroot" "$INSTALLDIR" adduser -D user -G user -s /bin/bash
|
||||||
|
"${TEMPLATE_CONTENT_DIR}/alpine-chroot" "$INSTALLDIR" addgroup user qubes
|
||||||
|
|
||||||
|
# create /lib/modules for qubes-kernel module mount
|
||||||
|
"${TEMPLATE_CONTENT_DIR}/alpine-chroot" "$INSTALLDIR" mkdir /lib/modules
|
||||||
|
|
||||||
# enable services
|
# enable services
|
||||||
for i in udev udev-trigger xendriverdomain qubes-qrexec-agent qubes-db qubes-meminfo-writer qubes-sysinit qubes-core-early qubes-core crond acpid; do
|
for i in udev udev-trigger xendriverdomain qubes-qrexec-agent qubes-db qubes-meminfo-writer qubes-sysinit qubes-core-early qubes-core qubes-gui-agent crond acpid; do
|
||||||
"${TEMPLATE_CONTENT_DIR}/alpine-chroot" "$INSTALLDIR" rc-update add $i default
|
"${TEMPLATE_CONTENT_DIR}/alpine-chroot" "$INSTALLDIR" rc-update add $i default
|
||||||
done
|
done
|
||||||
|
for i in bootmisc hostname hwclock loadkmap modules networking seedrng swap sysctl syslog; do
|
||||||
# setup initramfs
|
"${TEMPLATE_CONTENT_DIR}/alpine-chroot" "$INSTALLDIR" rc-update add $i boot
|
||||||
|
done
|
||||||
|
for i in devfs dmesg hwdrivers mdev; do
|
||||||
|
"${TEMPLATE_CONTENT_DIR}/alpine-chroot" "$INSTALLDIR" rc-update add $i sysinit
|
||||||
|
done
|
||||||
|
|
|
@ -8,22 +8,12 @@ xrandr
|
||||||
# Basic utils
|
# Basic utils
|
||||||
chrony
|
chrony
|
||||||
cups
|
cups
|
||||||
ethtool
|
|
||||||
net-tools
|
net-tools
|
||||||
sudo
|
sudo
|
||||||
wget
|
wget
|
||||||
diffutils
|
|
||||||
openssh
|
openssh
|
||||||
grep
|
|
||||||
htop
|
htop
|
||||||
|
|
||||||
# should be depends by core
|
|
||||||
e2fsprogs
|
|
||||||
e2fsprogs-extra
|
|
||||||
blkid
|
|
||||||
mkinitfs
|
|
||||||
grub-bios
|
|
||||||
|
|
||||||
# User env
|
# User env
|
||||||
ldns
|
ldns
|
||||||
tmux
|
tmux
|
||||||
|
@ -35,7 +25,6 @@ ttf-dejavu
|
||||||
ttf-inconsolata
|
ttf-inconsolata
|
||||||
ttf-linux-libertine
|
ttf-linux-libertine
|
||||||
|
|
||||||
|
|
||||||
# Gnome
|
# Gnome
|
||||||
gnome-settings-daemon
|
gnome-settings-daemon
|
||||||
gtk-engines
|
gtk-engines
|
||||||
|
|
Loading…
Reference in a new issue