2 # don't let udev and this script step on eachother's toes
3 for x
in 64-lvm.rules
70-mdadm.rules
99-mount-rules; do
4 > "/etc/udev/rules.d/$x"
6 rm -f -- /etc
/lvm
/lvm.conf
7 udevadm control
--reload
9 # save a partition at the beginning for future flagging purposes
22 mkfs.btrfs
-L dracut
/dev
/sda2
23 mkfs.btrfs
-L dracutusr
/dev
/sdb2
24 btrfs device scan
/dev
/sda2
25 btrfs device scan
/dev
/sdb2
27 mount
-t btrfs
/dev
/sda2
/root
28 [ -d /root
/usr
] || mkdir
/root
/usr
29 mount
-t btrfs
/dev
/sdb2
/root
/usr
30 btrfs subvolume create
/root
/usr
/usr
32 mount
-t btrfs
-o subvol
=usr
/dev
/sdb2
/root
/usr
33 cp -a -t /root
/source
/*
37 echo "dracut-root-block-created" >/dev
/sda1