# use a list of classes for our demo machine
case $HOSTNAME in
demohost)
- echo "FAIBASE DEBIAN DESKTOP STABLE TWO_DISK" ;;
+ echo "FAIBASE DEBIAN DESKTOP TWO_DISK" ;;
x2)
echo "FAIBASE DEBIAN DESKTOP ONE_DISK" ;;
tp)
for x in q home root; do
btrfs subvolume list . | grep "$x$" >/dev/null || btrfs subvolume create $x
done
+ for x in root/a q/a; do
+ mkdir -p $x
+ chown 1000:1000 $x
+ chmod 755 $x
+ done
btrfs subvolume set-default \
$(btrfs subvolume list . | grep 'root$' | awk '{print $2}') .
chattr -Rf +C root
cat > /tmp/fai/fstab <<EOF
$crypt / btrfs noatime,subvol=/root 0 0
$crypt /q btrfs noatime,subvol=/q 0 0
+/q/a /a none bind 0 0
$crypt /home btrfs noatime,subvol=/home 0 0
${devs[0]}1 /boot ext4 noatime 0 2
EOF