Re: Debian/Ubuntu patches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/11/9 maximilian attems <max@xxxxxxx>:

>> - 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.
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux