mkinitcpio: WARNING: deprecated 'install' function. This should be renamed 'build' for custom hook

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



Hi,

I have a custom hook [1] (opencrypt to setup encrypted partitions for me)
and last days (well, a couple of months maybe:P) I'm getting this on
every mkinitcpio
generation:

-> Parsing hook: [opencrypt]
==> WARNING: Hook 'opencrypt' uses a deprecated 'install' function.
This should be renamed 'build'
  -> Parsing hook: [resume]

Fortunately, the system still works ok, I am just curious what's the
complaint about?
I checked the official hooks in /lib/initcpio/hooks
and none uses build(), they do all run_hook().

Thanks, Mark

===================
[1] custom hook opencrypt
# vim: set ft=sh:
# marek for encryption
run_hook ()
{
        echo "opencrypt hook"
#       cryptsetup luksOpen /dev/sda6 preDevice ## handled by
cryptdevice=/dev/sda6:preDevice boot
cmd line # sda7 now, +1 shift
        mkdir -p /mnt/pre
        mount -n -t ext4 /dev/mapper/preDevice /mnt/pre


        echo "swapDevice: "
        cryptsetup -d /mnt/pre/swap.key luksOpen /dev/sda8 swapDevice
        echo "homeDevice: "
        cryptsetup -d /mnt/pre/home.key luksOpen /dev/sda10 homeDevice
        echo "storeDevice: "
        cryptsetup -d /mnt/pre/store.key luksOpen /dev/sda6 storeDevice

        umount /mnt/pre

        cryptsetup luksClose preDevice
        echo "[ok]"
}




-- 
Marek Otahal :o)


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux