]>
Raphaƫl G. Git Repositories - distgen/blob - lib/mkfs.sh
4 #XXX: it seems it's not possible to boot from ext4 or xfs V5 with grub-legacy anymore
5 mkfs.ext3
-L 'boot' -U ${BOOTUUID} /dev
/md
/${MDBOOT}
8 mkswap
-L 'swapa' -U ${SWAPAUUID} ${LOOPA}p3
9 mkswap
-L 'swapb' -U ${SWAPBUUID} ${LOOPB}p3
12 mkfs.btrfs
-L 'data' -U ${DATAUUID} /dev
/mapper
/${DATANAME}
15 mkdir -p ${MOUNTPOINT}
17 # Mount base filesystem
18 mount
/dev
/mapper
/${DATANAME} ${MOUNTPOINT}
20 # Create home subvolume
21 btrfs subvolume create
${MOUNTPOINT}/home
23 # Create mail subvolume
24 btrfs subvolume create
${MOUNTPOINT}/mail
26 # Create mysql subvolume
27 btrfs subvolume create
${MOUNTPOINT}/mysql
29 # Create slash subvolume
30 btrfs subvolume create
${MOUNTPOINT}/slash
32 # Set slash as default
33 btrfs subvolume
set-default $(btrfs subvolume list ${MOUNTPOINT} | grep slash | perl -pne 's/^ID\s([0-9]+)\s.
*$
/\
1/') ${MOUNTPOINT}
35 # Unmount slash filesystem