Package: hibernate Severity: wishlist Tags: patch Hello, in prevision of a backupt/restore, I populated each dir with a md5sum of the content, contained locally in a file 'md5sum.md5'. After that, hibernate stopped working, and the culprit was that it was trying to execute this new file. The fix is easy: 1) change each scriptlet mode to rwxr--r-- 2) apply the enclosed patch to /usr/sbin/hibernate: scriptlets are executed only if they are executable The added bonus is that you can add data or README files in the scriptlet dir, without perturbing the working of the command.
Best regards Pascal Dupuis -- Package-specific info: --- configuration ==> /etc/hibernate/common.conf <== Verbosity 0 LogFile /var/log/hibernate.log LogVerbosity 1 Distribution debian SaveClock restore-only ChangeGrubMenu yes GrubMenuFile /boot/grub/menu.lst AlternateGrubMenuFile /boot/grub/menu-suspended.lst BackupGrubMenuFile /var/backups/grub.conf.hibernate UnloadBlacklistedModules yes LoadModules auto SwitchToTextMode yes ==> /etc/hibernate/disk.conf <== TryMethod ususpend-disk.conf TryMethod sysfs-disk.conf ==> /etc/hibernate/hibernate.conf <== FullSpeedCPU on TryMethod suspend2.conf TryMethod disk.conf TryMethod ram.conf DownInterfaces wlan0 UnloadModules rt2500 UnmountFSTypes vfat smbfs nfs autofs fuse RestartServices laptop-net Mount /dos/C ==> /etc/hibernate/ram.conf <== TryMethod ususpend-ram.conf TryMethod sysfs-ram.conf ==> /etc/hibernate/suspend2.conf <== UseSuspend2 yes Reboot no EnableEscape yes DefaultConsoleLevel 1 Compressor lzf Encryptor none FullSpeedCPU yes Include common.conf ==> /etc/hibernate/sysfs-disk.conf <== UseSysfsPowerState disk Include common.conf ==> /etc/hibernate/sysfs-ram.conf <== UseSysfsPowerState mem Include common.conf ==> /etc/hibernate/ususpend-both.conf <== USuspendMethod both Include common.conf ==> /etc/hibernate/ususpend-disk.conf <== USuspendMethod disk Include common.conf ==> /etc/hibernate/ususpend-ram.conf <== USuspendMethod ram Include common.conf --- /sys/power ==> /sys/power/disk <== [platform] test testproc shutdown reboot ==> /sys/power/image_size <== 524288000 ==> /sys/power/resume <== 3:8 ==> /sys/power/state <== mem disk --- log hibernate.log file not readable. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.23.9 Locale: LANG=fr_BE, LC_CTYPE=fr_BE (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash
--- hibernate.orig 2007-11-29 09:59:43.000000000 +0100 +++ hibernate 2007-11-29 10:02:15.000000000 +0100 @@ -552,6 +552,9 @@ # Avoid editor backup files. case "$scriptlet" in *~|*.bak) continue ;; esac + # only use executable files + [ -x "$scriptlet" ] || continue + # Don't source a scriptlet by name more than once. scriptlet_name="${scriptlet##*/}"