aboutsummaryrefslogtreecommitdiffstats
path: root/setupdisk.sh
blob: e9cd6924d3ea9c3a7e68e1f143daf2db1bd15e28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

sudo fdisk "${LFS_DISK}" >/dev/null 2>&1 << EOF
o
n
p
1

+14G
a
1
n
p
2


p
w
q
EOF

sudo /sbin/mkfs -t ext4 -L "${LFS_VER}" -F "${LFS_DISK}${LFS_PART}" >/dev/null 2>&1