for traci different pass and a home subvolume
[automated-distro-installer] / fai / config / scripts / GRUB_PC / 11-ian
index 16e86de01610b6f43d77c458c115210d84dcd996..0ef4afdc48fb3e1e00f8dd77d95f29276db0af61 100755 (executable)
@@ -6,6 +6,7 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR
 $ROOTCMD adduser --disabled-password --gecos ian ian
 $ROOTCMD usermod -p "$ROOTPW" ian
 
+
 /var/lib/fai/config/distro-install-common/end
 
 fcopy -rM -i /home/ian/.ssh
@@ -14,5 +15,10 @@ chmod -R u=Xrw,og= $target/home/ian/.ssh
 cp -ar $target/home/ian/.ssh $target/root
 chown -R root:root $target/root/.ssh
 
-# the defaults in wheezy
+for dir in $target/{a,p}/c/machine_specific/$HOSTNAME/.unison; do
+    [[ -e $dir ]] || continue
+    $ROOTCMD rm -rf $target/root/.unison
+    $ROOTCMD ln -s $dir $target/root
+done
+
 $ROOTCMD usermod -aG cdrom,floppy,sudo,audio,dip,video,plugdev,netdev ian