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
8 # save a partition at the beginning for future flagging purposes
16 for i
in sda2 sda3 sda4
; do
17 lvm pvcreate
-ff -y /dev
/$i ;
19 lvm vgcreate dracut
/dev
/sda
[234] && \
20 lvm lvcreate
-l 16 -T dracut
/mythinpool
&& \
21 lvm lvcreate
-V1G -T dracut
/mythinpool
-n root
&& \
23 mke2fs
/dev
/dracut
/root
&& \
24 mkdir
-p /sysroot
&& \
25 mount
/dev
/dracut
/root
/sysroot
&& \
26 cp -a -t /sysroot
/source
/* && \
29 lvm lvchange
-a n
/dev
/dracut
/root
&& \
31 echo "dracut-root-block-created" >/dev
/sda1