2 # don't let udev and this script step on eachother's toes
3 for x
in 63-luks.rules
64-lvm.rules
70-mdadm.rules
99-mount-rules; do
4 > "/etc/udev/rules.d/$x"
6 udevadm control
--reload-rules
7 # save a partition at the beginning for future flagging purposes
8 sfdisk
-C 640 -H 2 -S 32 -L /dev
/sda
<<EOF
14 for i
in sda2 sda3 sda4
; do
15 lvm pvcreate
-ff -y /dev
/$i ;
17 lvm vgcreate dracut
/dev
/sda
[234] && \
18 lvm lvcreate
-l 100%FREE
-n root dracut
&& \
20 mke2fs
/dev
/dracut
/root
&& \
21 mkdir
-p /sysroot
&& \
22 mount
/dev
/dracut
/root
/sysroot
&& \
23 cp -a -t /sysroot
/source
/* && \
25 lvm lvchange
-a n
/dev
/dracut
/root
&& \
26 echo "dracut-root-block-created" >/dev
/sda1