]> Raphaƫl G. Git Repositories - distgen/blob - lib/mkfs.sh
Initial import
[distgen] / lib / mkfs.sh
1 #! /bin/sh -e
2
3 # Create /boot on it
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}
6
7 # Create swap on it
8 mkswap -U ${SWAPAUUID} ${LOOPA}p3
9 mkswap -U ${SWAPBUUID} ${LOOPB}p3
10
11 # Create filesystem
12 mkfs.btrfs -L 'slash' -U ${SLASHUUID} /dev/mapper/${SLASHNAME}
13
14 # Create filesystem
15 mkfs.btrfs -L 'data' -U ${DATAUUID} /dev/mapper/${DATANAME}