installer-feature-desktop-suspend-0.5/000075500000000000000000000000001164056332700201375ustar00rootroot00000000000000installer-feature-desktop-suspend-0.5/Makefile000064400000000000000000000004121164056332700215740ustar00rootroot00000000000000install2_dir=$(datadir)/install2 install: install -d $(install2_dir) [ -d initinstall.d ] && cp -a initinstall.d $(install2_dir) ||: [ -d preinstall.d ] && cp -a preinstall.d $(install2_dir) ||: [ -d postinstall.d ] && cp -a postinstall.d $(install2_dir) ||: installer-feature-desktop-suspend-0.5/preinstall.d/000075500000000000000000000000001164056332700225365ustar00rootroot00000000000000installer-feature-desktop-suspend-0.5/preinstall.d/70-setup-resume000075500000000000000000000005671164056332700253560ustar00rootroot00000000000000#!/bin/sh -fu # get first suitable swap, configure resume (if any) . install2-init-functions blkid | grep -v '^/dev.*/zram' | grep swap | head -1 \ | sed 's/.*UUID="\(.*\)".*/\1/' | sed 's/".*//' \ | ( read UUID ||: [ -z "$UUID" ] || subst "s,^GRUB_CMDLINE_LINUX_DEFAULT=',&resume=/dev/disk/by-uuid/$UUID ," \ "$destdir"/etc/sysconfig/grub2 ||: ) :