fix-absolute-paths-in-install-scriptlet.patch

This commit is contained in:
Tobias Powalowski 2011-07-23 21:00:45 +00:00
parent 19eb4c013e
commit 8c231a309d
1 changed files with 10 additions and 11 deletions

View File

@ -7,15 +7,14 @@ KERNEL_VERSION=3.0.0-ARCH
post_install () { post_install () {
# updating module dependencies # updating module dependencies
echo ">>> Updating module dependencies. Please wait ..." echo ">>> Updating module dependencies. Please wait ..."
/sbin/depmod ${KERNEL_VERSION} depmod ${KERNEL_VERSION}
echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
/sbin/mkinitcpio -p linux${KERNEL_NAME} mkinitcpio -p linux${KERNEL_NAME}
# add compat symlinks for the initramfs images # add compat symlinks for the initramfs images
ln -sf initramfs-linux${KERNEL_NAME}.img \ ln -sf initramfs-linux${KERNEL_NAME}.img boot/kernel26${KERNEL_NAME}.img
${pkgdir}/boot/kernel26${KERNEL_NAME}.img
ln -sf initramfs-linux${KERNEL_NAME}-fallback.img \ ln -sf initramfs-linux${KERNEL_NAME}-fallback.img \
${pkgdir}/boot/kernel26${KERNEL_NAME}-fallback.img boot/kernel26${KERNEL_NAME}-fallback.img
} }
post_upgrade() { post_upgrade() {
@ -37,8 +36,8 @@ post_upgrade() {
echo ">>>" echo ">>>"
fi fi
if grep "^[^#]*[[:space:]]/boot" /etc/fstab 2>&1 >/dev/null; then if grep "^[^#]*[[:space:]]/boot" etc/fstab 2>&1 >/dev/null; then
if ! grep "[[:space:]]/boot" /etc/mtab 2>&1 >/dev/null; then if ! grep "[[:space:]]/boot" etc/mtab 2>&1 >/dev/null; then
echo "WARNING: /boot appears to be a seperate partition but is not mounted" echo "WARNING: /boot appears to be a seperate partition but is not mounted"
echo " This is most likely not what you want. Please mount your /boot" echo " This is most likely not what you want. Please mount your /boot"
echo " partition and reinstall the kernel unless you are sure this is OK" echo " partition and reinstall the kernel unless you are sure this is OK"
@ -47,13 +46,13 @@ post_upgrade() {
# updating module dependencies # updating module dependencies
echo ">>> Updating module dependencies. Please wait ..." echo ">>> Updating module dependencies. Please wait ..."
/sbin/depmod ${KERNEL_VERSION} depmod ${KERNEL_VERSION}
echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
/sbin/mkinitcpio -p linux${KERNEL_NAME} mkinitcpio -p linux${KERNEL_NAME}
} }
post_remove() { post_remove() {
# also remove the compat symlinks # also remove the compat symlinks
rm -f /boot/{initramfs-linux,kernel26}${KERNEL_NAME}.img rm -f boot/{initramfs-linux,kernel26}${KERNEL_NAME}.img
rm -f /boot/{initramfs-linux,kernel26}${KERNEL_NAME}-fallback.img rm -f boot/{initramfs-linux,kernel26}${KERNEL_NAME}-fallback.img
} }