Diff of /smage/branches/alx-0_6_0/core/mkinitrd/mkinitrd-6.3.5-r4.smage2
Parent Directory | Revision Log | Patch
revision 3405 by niro, Wed Apr 4 08:07:04 2012 UTC | revision 3412 by niro, Wed Apr 4 10:08:12 2012 UTC | |
---|---|---|
# | Line 88 preinstall() | Line 88 preinstall() |
88 | { | { |
89 | add_conf_prot_ignore /etc/conf.d/mkinitrd | add_conf_prot_ignore /etc/conf.d/mkinitrd |
90 | } | } |
91 | ||
92 | postinstall() | |
93 | { | |
94 | # re-create initrd | |
95 | mount /boot &> /dev/null | |
96 | kv="$(readlink /boot/initrd | sed -e 's:initrd-::' -e 's:.img::')" | |
97 | if [ -d /lib/modules/${kv} ] | |
98 | then | |
99 | mkinitrd -f /boot/initrd-"${kv}".img "${kv}" | |
100 | else | |
101 | echo "Warning: modules dir /lib/modules/${kv} does not exist!" | |
102 | fi | |
103 | } |
|