Better bugfix for boot delay "waiting for suspend/resume device"

95ae09470f (commitcomment-30692608)
This commit is contained in:
Igor Pecovnik 2018-09-28 20:16:24 +02:00
parent ba20799f0d
commit 05db63c1a8

View file

@ -158,8 +158,11 @@ create_board_package()
fi fi
# fix boot delay "waiting for suspend/resume device" # fix boot delay "waiting for suspend/resume device"
if grep --quiet RESUME=none /etc/initramfs-tools/initramfs.conf; then true; if [ -f "/etc/initramfs-tools/initramfs.conf" ]; then
else echo "RESUME=none" >> /etc/initramfs-tools/initramfs.conf; fi if ! grep --quiet "RESUME=none" /etc/initramfs-tools/initramfs.conf; then
echo "RESUME=none" >> /etc/initramfs-tools/initramfs.conf
fi
fi
# install bootscripts if they are not present. Fix upgrades from old images # install bootscripts if they are not present. Fix upgrades from old images
if [ ! -f /boot/$bootscript_dst ]; then if [ ! -f /boot/$bootscript_dst ]; then