You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
526 B
21 lines
526 B
#!/bin/sh
|
|
#
|
|
# This file should be placed in pre-trigger directory in dracut's initramfs, or
|
|
# scripts/local-top in case of initramfs-tools
|
|
#
|
|
|
|
# initramfs-tools (Debian) API
|
|
PREREQS=""
|
|
case "$1" in
|
|
prereqs)
|
|
# This runs during initramfs creation
|
|
echo "$PREREQS"
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
if [ -w /sys/devices/system/xen_memory/xen_memory0/scrub_pages ]; then
|
|
# re-enable xen-balloon pages scrubbing, after initial balloon down
|
|
echo 1 > /sys/devices/system/xen_memory/xen_memory0/scrub_pages
|
|
fi
|