From: Raphaƫl Gertz Date: Thu, 31 Jan 2019 17:42:32 +0000 (+0100) Subject: Force enable systemd networkd service X-Git-Tag: 0.1~4 X-Git-Url: https://git.rapsys.eu/distcook/commitdiff_plain/253d32f13dbc71bc66894c526f248dedd71dacfc?hp=b1567d6380db820bed2da4f22fabd3152fe647fa Force enable systemd networkd service Add mysql and mail subvol --- diff --git a/lib/pattern.sh b/lib/pattern.sh index ee96dec..c4581c9 100755 --- a/lib/pattern.sh +++ b/lib/pattern.sh @@ -82,13 +82,21 @@ DHCP=yes EOF fi +#Mysql +mkdir -p "$PWD/root/var/lib/mysql" + +#Mail +mkdir -p "$PWD/root/var/spool/mail" + #Fstab cat << EOF > "$PWD/root/etc/fstab" -UUID=${BOOTUUID} /boot ext3 defaults,noatime 1 2 -UUID=${DATAUUID} / btrfs subvol=/slash,defaults,relatime 1 1 -UUID=${SWAPAUUID} none swap sw 0 0 -UUID=${SWAPBUUID} none swap sw 0 0 -UUID=${DATAUUID} /home btrfs subvol=/home,defaults,relatime 1 1 +UUID=${BOOTUUID} /boot ext3 defaults,noatime 1 2 +UUID=${DATAUUID} / btrfs subvol=/slash,defaults,relatime 1 1 +UUID=${SWAPAUUID} none swap sw 0 0 +UUID=${SWAPBUUID} none swap sw 0 0 +UUID=${DATAUUID} /home btrfs subvol=/home,defaults,relatime 1 1 +UUID=${DATAUUID} /var/lib/mysql btrfs subvol=/mysql,defaults,relatime 1 1 +UUID=${DATAUUID} /var/spool/mail btrfs subvol=/mail,defaults,relatime 1 1 proc /proc proc defaults 0 0 EOF @@ -230,5 +238,8 @@ fi #TODO ntp /etc/systemd/timesyncd.conf +# Force enable systemd-networkd.service +chroot "$PWD/root" /usr/bin/systemctl enable systemd-networkd.service + # Cleanup tmp and run rm -fr $PWD/root/tmp/* $PWD/root/run/*