Updated dotfiles installation and replaced apt install with a more soft dependencies check

master
Meliurwen 2 years ago
parent 68c85f4a1a
commit e2e0b7efb4
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 10
      install-chroot.sh
  2. 3
      root/srv/get_dotfiles.sh

@ -2,7 +2,9 @@
set -e set -e
apt install \ printf "Checking dependencies...\n"
dpkg-query -W \
git \
debootstrap \ debootstrap \
squashfs-tools \ squashfs-tools \
xorriso \ xorriso \
@ -33,9 +35,9 @@ chroot /srv/LIVE_BOOT/chroot /srv/entrypoint.sh
rm -rf /srv/LIVE_BOOT/chroot/srv/* rm -rf /srv/LIVE_BOOT/chroot/srv/*
# Change password to the users # Change password to the users
echo "Setting passwords for users..." printf "Setting passwords for users...\n"
echo "root:root" | chpasswd --root /srv/LIVE_BOOT/chroot printf "root:root\n" | chpasswd --root /srv/LIVE_BOOT/chroot
echo "live-user:root" | chpasswd --root /srv/LIVE_BOOT/chroot printf "live-user:root\n" | chpasswd --root /srv/LIVE_BOOT/chroot
# Create directories that will contain files for our live environment files and scratch files. # Create directories that will contain files for our live environment files and scratch files.
bash -c "mkdir -p /srv/LIVE_BOOT/{staging/{EFI/boot,boot/grub/x86_64-efi,isolinux,live},tmp}" bash -c "mkdir -p /srv/LIVE_BOOT/{staging/{EFI/boot,boot/grub/x86_64-efi,isolinux,live},tmp}"

@ -16,8 +16,11 @@ git clone https://gitlab.com/meliurwen/dotfiles.git .dotfiles
cd .dotfiles cd .dotfiles
# TODO: use dotvenv
cat ".mousepad/mousepad.dconf" | dbus-run-session dconf load "/org/xfce/mousepad/" cat ".mousepad/mousepad.dconf" | dbus-run-session dconf load "/org/xfce/mousepad/"
cat ".nemo/nemo.dconf" | dbus-run-session dconf load "/org/nemo/" cat ".nemo/nemo.dconf" | dbus-run-session dconf load "/org/nemo/"
cat ".gnome/gnome.dconf" | dbus-run-session dconf load "/org/gnome/desktop/interface/"
cat ".cinnamon/cinnamon.dconf" | dbus-run-session dconf load "/org/cinnamon/desktop/applications/terminal/"
stow --restow --no-folding */ stow --restow --no-folding */

Loading…
Cancel
Save