From bb535e4a0e791b20eb4e5f49007db2ed6be5f538 Mon Sep 17 00:00:00 2001 From: fake Date: Thu, 23 Mar 2006 00:16:52 +0000 Subject: [PATCH] fake: rockinitrd: add a postinstall script that re- creates the initrd if the default image was updated. this fixes the /dev/root as default root-filesytem (coming from the build-time /etc/fstab) [2006031618512808515] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@7325 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/rockinitrd/postinstall.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 package/base/rockinitrd/postinstall.sh diff --git a/package/base/rockinitrd/postinstall.sh b/package/base/rockinitrd/postinstall.sh new file mode 100644 index 000000000..ce75286ec --- /dev/null +++ b/package/base/rockinitrd/postinstall.sh @@ -0,0 +1,5 @@ +if any_installed "boot/initrd.img" ; then + echo "Re-Creating initrd..." + /sbin/mkinitrd +fi +