summaryrefslogtreecommitdiff
path: root/debian/initramfs-tools.preinst
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-07-13 23:33:32 +0200
committermaximilian attems <maks@debian.org>2006-07-13 23:33:32 +0200
commit62bb60b509b62e6ce68d067b7f293019ed102b9a (patch)
treedaedd6fc3687a97a72685bae68ca5a7b182bfe68 /debian/initramfs-tools.preinst
parent50586c0818aa8de3ba3aa1c105acbe31537a9be1 (diff)
downloadinitramfs-tools-62bb60b509b62e6ce68d067b7f293019ed102b9a.tar.gz
initramfs-tools-62bb60b509b62e6ce68d067b7f293019ed102b9a.zip
- fix noresume exporting
- readd plain upgly kernel-package interface to mkinitramfs with depreciation warning - nice fixes in preinst by Kamion
Diffstat (limited to 'debian/initramfs-tools.preinst')
-rw-r--r--debian/initramfs-tools.preinst4
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/initramfs-tools.preinst b/debian/initramfs-tools.preinst
index dca832f..b92d393 100644
--- a/debian/initramfs-tools.preinst
+++ b/debian/initramfs-tools.preinst
@@ -5,6 +5,8 @@ set -e
case "$1" in
configure)
if [ -n "$2" ]; then
+ 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 } ')
@@ -18,7 +20,7 @@ case "$1" in
# Add initrd-tools modules, while trying to minimize prompting
if [ -e /etc/mkinitrd/modules ]; then
- cp /etc/mkinitrd/modules /etc/initramfs-tools
+ cp /etc/mkinitrd/modules /etc/initramfs-tools/
sed -i \
-e 's/\/etc\/mkinitrd\/modules: Kernel modules to load for initrd./List of modules that you want to include in your initramfs./g' \
-e 's/mkinitrd/update-initramfs/g' \