]> Raphaël G. Git Repositories - distcook/commitdiff
Force enable systemd networkd service
authorRaphaël Gertz <git@rapsys.eu>
Thu, 31 Jan 2019 17:42:32 +0000 (18:42 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 31 Jan 2019 17:45:15 +0000 (18:45 +0100)
Add mysql and mail subvol

lib/pattern.sh

index ee96decda60a7554f9f9bf468a8bf58e2ccb9792..c4581c9cab9af4ced8aac6ecf3d92f0dbfa188a6 100755 (executable)
@@ -82,13 +82,21 @@ DHCP=yes
 EOF
 fi
 
 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"
 #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
 
 proc                                           /proc   proc    defaults 0 0
 EOF
 
@@ -230,5 +238,8 @@ fi
 
 #TODO ntp /etc/systemd/timesyncd.conf
 
 
 #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/*
 # Cleanup tmp and run
 rm -fr $PWD/root/tmp/* $PWD/root/run/*