Hi maximilian,

2010/11/9 Jon Ander Hernandez <[email protected]>:
> 2010/11/9 maximilian attems <[email protected]>:
>
>>> - Postinst script can be executed when installing first time dracut,
>>> and when we are upgrading Dracut. Check if it should create a new
>>> initramfs or if it should upgrade it.
>>>
>>> diff -urN dracut/debian/dracut.postinst dracut-007/debian/dracut.postinst
>>> --- dracut/debian/dracut.postinst     2010-08-09 16:13:51.000000000 +0200
>>> +++ dracut-007/debian/dracut.postinst 2010-10-21 02:49:45.714564995 +0200
>>> @@ -2,7 +2,11 @@
>>>
>>>  set -e
>>>
>>> -# Regenerate initramfs when we're `installed`
>>> -DPKG_MAINTSCRIPT_PACKAGE='' dracut-update-initramfs -u
>>> +if [ -f /boot/dracut.img-`uname -r` ]; then
>>> +    # Regenerate initramfs when we're `installed`
>>> +    DPKG_MAINTSCRIPT_PACKAGE='' dracut-update-initramfs -t -u
>>> +else
>>> +    dracut-update-initramfs -c -k `uname -r`
>>> +fi
>>
>> not sure why you want a create at all here, create should be called
>> by linux-2.6 images not the wrapper script itself.
>
> But you probably will install dracut once you have a linux kernel
> installed, so if you do so, the kernel postinst script will create
> dracut initramfs for any new kernel image installed, but not for the
> current installed one.

Sorry, ¿Did you read this email? 0:-)

Thanks,

Jon Ander.
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to