Package: uswsusp Version: 1.0+20110509-1.1 Hi,
with this version, the initramfs script has changed so it needs
an explicit resume=<swap> boot parameter. I have several issues
with that:
- At least, it should be documented, as all of a sudden resume
does not work anymore as it used to be without changes by the user.
- If you do not want to resume, the boot paramter noresume is enough.
- This duplicates information from /etc/uswsusp.conf. Bug #544641
contains a solution for this unnecessary duplication.
- Actually, just in case the root and the swap partition are on
different volume groups, there should be an additional script
in local-top that runs before lvm2 and sets the resume variable
to the configured partition. See below.
Bye,
Joerg
# As /usr/share/initramfs-tools/scripts/local-top/uswsusp
#!/bin/sh
PREREQ="" # Actually, this must run before lvm2 to make sense
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
# From /usr/share/initramfs-tools/hooks/uswsusp
# Works, as scripts are sourced
resume=$(sed -rn 's/^resume device[[:space:]]+[:=][[:space:]]+// p'
/etc/uswsusp.conf)
signature.asc
Description: Digital signature

