summaryrefslogtreecommitdiff
path: root/debian/initramfs-tools.preinst
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-09-27 16:03:30 +0200
committermaximilian attems <maks@debian.org>2006-09-27 16:03:30 +0200
commitb8c8f676a5f0da208b27e4d9bac71ae3814a1b97 (patch)
treebba2efe7783427d1ea4c414497e47ff11dda191c /debian/initramfs-tools.preinst
parent681dc7a7566afa2de5fa7d1edf8aa1c25ec451a6 (diff)
downloadinitramfs-tools-b8c8f676a5f0da208b27e4d9bac71ae3814a1b97.tar.gz
initramfs-tools-b8c8f676a5f0da208b27e4d9bac71ae3814a1b97.zip
- mkinitramfs: allow umask setting paranoid
- revert an nfs changes small fixes over the place
Diffstat (limited to 'debian/initramfs-tools.preinst')
-rw-r--r--debian/initramfs-tools.preinst6
1 files changed, 4 insertions, 2 deletions
diff --git a/debian/initramfs-tools.preinst b/debian/initramfs-tools.preinst
index b92d393..7b02612 100644
--- a/debian/initramfs-tools.preinst
+++ b/debian/initramfs-tools.preinst
@@ -8,9 +8,11 @@ case "$1" in
mkdir -p /etc/initramfs-tools/conf.d
# First time install. Can we autodetect the RESUME partition?
- RESUME=$(tail -n $(($(wc -l /proc/swaps | awk ' { print $1 } ') - 1)) /proc/swaps | sort -rk3 | head -n 1 | awk ' { print $1 } ')
+ if [ -r /proc/swaps ]; then
+ RESUME=$(tail -n $(($(wc -l /proc/swaps | awk ' { print $1 } ') - 1)) /proc/swaps | sort -rk3 | head -n 1 | awk ' { print $1 } ')
+ fi
- # Inhertic initrd-tools settings if possible.
+ # Inherit initrd-tools settings if possible.
if [ -e /etc/mkinitrd/mkinitrd.conf ]; then
. /etc/mkinitrd/mkinitrd.conf
fi