File: dracut.postinst

package info (click to toggle)
dracut 020-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,536 kB
  • sloc: sh: 11,827; ansic: 1,960; makefile: 183; python: 165; perl: 55
file content (15 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

# check if any kernel is available
# do not call dracut if no kernel was found
if ls /boot/vmlinu[zx]-* >/dev/null 2>&1; then

    # Regenerate initramfs for all kernel that are installed
    for kversion in `ls /boot/vmlinu[zx]-* | sed -e 's#/boot/vmlinu.-##'`; do
        /etc/kernel/postinst.d/dracut $kversion
    done
fi

#DEBHELPER#