mirror of
https://github.com/xcat2/confluent.git
synced 2026-11-29 22:02:23 +00:00
Merge pull request #362 from Obihoernchen/fix/capture-optional-lvm
Make lvm optional for capture
This commit is contained in:
@@ -29,7 +29,7 @@ if [ ! -f /sysroot/tmp/installdisk ]; then
|
||||
sleep 1
|
||||
done
|
||||
fi
|
||||
lvm vgchange -a n
|
||||
if command -v lvm > /dev/null; then lvm vgchange -a n; fi # lvm is optional in the initramfs
|
||||
udevadm control -e
|
||||
chroot /sysroot /usr/lib/systemd/systemd-udevd --daemon
|
||||
chroot /sysroot bash -c "source /etc/confluent/functions; run_remote_python image2disk.py"
|
||||
|
||||
@@ -36,7 +36,7 @@ if [ ! -f /sysroot/tmp/installdisk ]; then
|
||||
sleep 1
|
||||
done
|
||||
fi
|
||||
lvm vgchange -a n
|
||||
if command -v lvm > /dev/null; then lvm vgchange -a n; fi # lvm is optional in the initramfs
|
||||
udevadm control -e
|
||||
if [ -f /sysroot/etc/lvm/devices/system.devices ]; then
|
||||
rm /sysroot/etc/lvm/devices/system.devices
|
||||
|
||||
@@ -41,7 +41,7 @@ if [ ! -f /sysroot/tmp/installdisk ]; then
|
||||
sleep 1
|
||||
done
|
||||
fi
|
||||
lvm vgchange -a n
|
||||
if command -v lvm > /dev/null; then lvm vgchange -a n; fi # lvm is optional in the initramfs
|
||||
/sysroot/usr/sbin/wipefs -a /dev/$(cat /sysroot/tmp/installdisk)
|
||||
udevadm control -e
|
||||
if [ -f /sysroot/etc/lvm/devices/system.devices ]; then
|
||||
|
||||
@@ -31,7 +31,7 @@ if [ ! -f /sysroot/tmp/installdisk ]; then
|
||||
sleep 1
|
||||
done
|
||||
fi
|
||||
lvm vgchange -a n
|
||||
if command -v lvm > /dev/null; then lvm vgchange -a n; fi # lvm is optional in the initramfs
|
||||
udevadm control -e
|
||||
if [ -f /sysroot/etc/lvm/devices/system.devices ]; then
|
||||
rm /sysroot/etc/lvm/devices/system.devices
|
||||
|
||||
@@ -18,7 +18,8 @@ dracut_install chmod chcon whoami head tail basename tr
|
||||
dracut_install /usr/sbin/arping dhcpcd logger hostnamectl
|
||||
inst /bin/bash /bin/sh
|
||||
dracut_install /lib64/libfuse.so.2
|
||||
dracut_install chown chroot dd expr kill parted rsync sort blockdev findfs insmod lvm
|
||||
dracut_install chown chroot dd expr kill parted rsync sort blockdev findfs insmod
|
||||
dracut_install -o lvm # optional, only used to deactivate stale volume groups before install
|
||||
dracut_install /usr/lib/udev/rules.d/10-dm.rules /usr/sbin/dmsetup /usr/lib/udev/rules.d/95-dm-notify.rules
|
||||
dracut_install /usr/lib/udev/rules.d/60-net.rules /lib/udev/rename_device /usr/lib/systemd/network/99-default.link
|
||||
dracut_install /lib64/libpthread.so.0
|
||||
|
||||
@@ -18,7 +18,8 @@ dracut_install chmod chcon whoami head tail basename tr
|
||||
dracut_install /usr/sbin/arping /usr/sbin/dhclient-script ipcalc logger hostnamectl
|
||||
inst /bin/bash /bin/sh
|
||||
dracut_install /lib64/libfuse.so.2
|
||||
dracut_install chown chroot dd expr kill parted rsync sort blockdev findfs insmod lvm
|
||||
dracut_install chown chroot dd expr kill parted rsync sort blockdev findfs insmod
|
||||
dracut_install -o lvm # optional, only used to deactivate stale volume groups before install
|
||||
dracut_install /usr/lib/udev/rules.d/10-dm.rules /usr/sbin/dmsetup /usr/lib/udev/rules.d/95-dm-notify.rules
|
||||
dracut_install /usr/lib/udev/rules.d/60-net.rules /lib/udev/rename_device
|
||||
dracut_install losetup # multipart support
|
||||
|
||||
@@ -16,7 +16,8 @@ dracut_install chmod chcon whoami head tail basename tr
|
||||
dracut_install /usr/sbin/arping /usr/sbin/dhclient-script ipcalc logger hostnamectl
|
||||
inst /bin/bash /bin/sh
|
||||
dracut_install /lib64/libfuse.so.2 /lib64/libfuse.so.2.9.7
|
||||
dracut_install chown chroot dd expr kill parted rsync sort blockdev findfs insmod lvm
|
||||
dracut_install chown chroot dd expr kill parted rsync sort blockdev findfs insmod
|
||||
dracut_install -o lvm # optional, only used to deactivate stale volume groups before install
|
||||
dracut_install /usr/lib/udev/rules.d/10-dm.rules /usr/sbin/dmsetup /usr/lib/udev/rules.d/95-dm-notify.rules
|
||||
dracut_install /usr/lib/udev/rules.d/60-net.rules /lib/udev/rename_device /usr/lib/systemd/network/99-default.link
|
||||
dracut_install losetup # multipart support
|
||||
|
||||
@@ -17,7 +17,8 @@ dracut_install chmod chcon whoami head tail basename tr
|
||||
dracut_install /usr/sbin/arping /usr/sbin/dhclient-script ipcalc logger hostnamectl
|
||||
inst /bin/bash /bin/sh
|
||||
dracut_install /lib64/libfuse.so.2
|
||||
dracut_install chown chroot dd expr kill parted rsync sort blockdev findfs insmod lvm
|
||||
dracut_install chown chroot dd expr kill parted rsync sort blockdev findfs insmod
|
||||
dracut_install -o lvm # optional, only used to deactivate stale volume groups before install
|
||||
dracut_install /usr/lib/udev/rules.d/10-dm.rules /usr/sbin/dmsetup /usr/lib/udev/rules.d/95-dm-notify.rules
|
||||
dracut_install /usr/lib/udev/rules.d/60-net.rules /lib/udev/rename_device /usr/lib/systemd/network/99-default.link
|
||||
dracut_install /lib64/libpthread.so.0
|
||||
|
||||
@@ -17,7 +17,8 @@ dracut_install chmod whoami head tail basename tr
|
||||
dracut_install /usr/sbin/arping logger hostnamectl
|
||||
inst /bin/bash /bin/sh
|
||||
dracut_install /lib64/libfuse.so.2 /lib64/libfuse.so.2.9.7
|
||||
dracut_install chown chroot dd expr kill parted rsync sort blockdev findfs insmod lvm
|
||||
dracut_install chown chroot dd expr kill parted rsync sort blockdev findfs insmod
|
||||
dracut_install -o lvm # optional, only used to deactivate stale volume groups before install
|
||||
dracut_install /usr/lib/udev/rules.d/10-dm.rules /usr/sbin/dmsetup /usr/lib/udev/rules.d/95-dm-notify.rules
|
||||
dracut_install /usr/lib/systemd/network/99-default.link
|
||||
dracut_install losetup # multipart support
|
||||
|
||||
@@ -28,7 +28,8 @@ dracut_install /lib64/libfuse.so.2 # symlink, dracut brings the target along
|
||||
# urlmount still links libpthread, which since glibc 2.34 is an empty stub that
|
||||
# nothing else in the initramfs pulls in
|
||||
dracut_install /lib64/libpthread.so.0
|
||||
dracut_install chown chroot dd expr kill parted rsync sort blockdev findfs insmod lvm
|
||||
dracut_install chown chroot dd expr kill parted rsync sort blockdev findfs insmod
|
||||
dracut_install -o lvm # optional, only used to deactivate stale volume groups before install
|
||||
dracut_install /usr/lib/udev/rules.d/10-dm.rules /usr/sbin/dmsetup /usr/lib/udev/rules.d/95-dm-notify.rules
|
||||
dracut_install /usr/lib/systemd/network/99-default.link
|
||||
dracut_install losetup # multipart support
|
||||
|
||||
Reference in New Issue
Block a user