dom0: script for initrd regeneration (#7)
This commit is contained in:
parent
a68faecc35
commit
8121e80db0
17
dom0/aux-tools/regenerate_initramfs.sh
Executable file
17
dom0/aux-tools/regenerate_initramfs.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
KERNEL_VER=$1
|
||||||
|
if [ -z "$KERNEL_VER" ]; then
|
||||||
|
KERNEL_VER=`uname -r`
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Find all network devices
|
||||||
|
HIDE_PCI=`lspci -mm -n | grep '^[^ ]* "02'|awk '{ ORS="";print "(" $1 ")";}'`
|
||||||
|
|
||||||
|
echo "# This file is autogenerated by kernel post-install script" > /etc/modprobe.d/pciback.conf
|
||||||
|
echo "# DO NOT EDIT" >> /etc/modprobe.d/pciback.conf
|
||||||
|
echo "" >> /etc/modprobe.d/pciback.conf
|
||||||
|
echo "options pciback hide=$HIDE_PCI" >> /etc/modprobe.d/pciback.conf
|
||||||
|
|
||||||
|
dracut --force --add-drivers 'xts aesni-intel aes-x86_64 crc32c-intel fpu ghash-clmulni-intel salsa20-x86_64 twofish-x86_64 pciback' \
|
||||||
|
/boot/initramfs-$KERNEL_VER.img $KERNEL_VER
|
@ -91,6 +91,7 @@ cp aux-tools/convert_dirtemplate2vm.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
|||||||
cp aux-tools/create_apps_for_appvm.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
cp aux-tools/create_apps_for_appvm.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
||||||
cp aux-tools/remove_appvm_appmenus.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
cp aux-tools/remove_appvm_appmenus.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
||||||
cp aux-tools/reset_vm_configs.py $RPM_BUILD_ROOT/usr/lib/qubes
|
cp aux-tools/reset_vm_configs.py $RPM_BUILD_ROOT/usr/lib/qubes
|
||||||
|
cp aux-tools/regenerate_initramfs.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
||||||
cp aux-tools/sync_rpmdb_updatevm.sh $RPM_BUILD_ROOT/usr/lib/qubes/
|
cp aux-tools/sync_rpmdb_updatevm.sh $RPM_BUILD_ROOT/usr/lib/qubes/
|
||||||
cp qmemman/server.py $RPM_BUILD_ROOT/usr/lib/qubes/qmemman_daemon.py
|
cp qmemman/server.py $RPM_BUILD_ROOT/usr/lib/qubes/qmemman_daemon.py
|
||||||
cp ../common/meminfo-writer $RPM_BUILD_ROOT/usr/lib/qubes/
|
cp ../common/meminfo-writer $RPM_BUILD_ROOT/usr/lib/qubes/
|
||||||
@ -300,6 +301,7 @@ fi
|
|||||||
/usr/lib/qubes/qmemman_daemon.py*
|
/usr/lib/qubes/qmemman_daemon.py*
|
||||||
/usr/lib/qubes/meminfo-writer
|
/usr/lib/qubes/meminfo-writer
|
||||||
/usr/lib/qubes/qfile-daemon-dvm*
|
/usr/lib/qubes/qfile-daemon-dvm*
|
||||||
|
/usr/lib/qubes/regenerate_initramfs.sh
|
||||||
/usr/lib/qubes/sync_rpmdb_updatevm.sh
|
/usr/lib/qubes/sync_rpmdb_updatevm.sh
|
||||||
/usr/lib/qubes/qubes-receive-updates
|
/usr/lib/qubes/qubes-receive-updates
|
||||||
%attr(4750,root,qubes) /usr/lib/qubes/qfile-dom0-unpacker
|
%attr(4750,root,qubes) /usr/lib/qubes/qfile-dom0-unpacker
|
||||||
|
Loading…
Reference in New Issue
Block a user