Σήμερα (20110713) αναβάθμισα την έκδοση του mkinitcpio στην τελευταία έκδοση στο archlinux


mkinitcpio 0.7.2-1
kernel26 2.6.39.3-1


χρησιμοποιώ το uswsusp για να κάνω αδρανοποίηση του laptop μου
κι έπεσα στο εξής πρόβλημα:


==> WARNING: Hook 'uresume' uses a deprecated 'install' function. This should be renamed 'build'


ορίστε πως το έλυσα:


# uname -a
Linux mylaptop 2.6.39-ARCH #1 SMP PREEMPT Sat Jul 9 15:31:04 CEST 2011 i686 Intel® Core™2 CPU T5600 @ 1.83GHz GenuineIntel GNU/Linux
 
# grep ^HOOKS /etc/mkinitcpio.conf 
HOOKS="base udev autodetect pata scsi sata uresume encrypt filesystems usbinput"
 
# mkinitcpio -c /etc/mkinitcpio.conf -g /boot/kernel26.enc.img 
==> Starting build: 2.6.39-ARCH
  -> Parsing hook: [base]
  -> Parsing hook: [udev]
  -> Parsing hook: [autodetect]
  -> Parsing hook: [pata]
  -> Parsing hook: [scsi]
  -> Parsing hook: [sata]
  -> Parsing hook: [uresume]
==> WARNING: Hook 'uresume' uses a deprecated 'install' function. This should be renamed 'build'
  -> Parsing hook: [encrypt]
  -> Parsing hook: [filesystems]
  -> Parsing hook: [usbinput]
==> Generating module dependencies
==> Creating xz initcpio image: /boot/kernel26.enc.img
10629 blocks
==> Image generation successful
 
# perl -p -i -e 's/install/build/g' /lib/initcpio/install/uresume 
 
# mkinitcpio -c /etc/mkinitcpio.conf -g /boot/kernel26.enc.img 
==> Starting build: 2.6.39-ARCH
  -> Parsing hook: [base]
  -> Parsing hook: [udev]
  -> Parsing hook: [autodetect]
  -> Parsing hook: [pata]
  -> Parsing hook: [scsi]
  -> Parsing hook: [sata]
  -> Parsing hook: [uresume]
  -> Parsing hook: [encrypt]
  -> Parsing hook: [filesystems]
  -> Parsing hook: [usbinput]
==> Generating module dependencies
==> Creating xz initcpio image: /boot/kernel26.enc.img
10629 blocks
==> Image generation successful