diff options
Diffstat (limited to 'meta/classes/rootfs_deb.bbclass')
-rw-r--r-- | meta/classes/rootfs_deb.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass index 0161f7a718..b1c52f9dd6 100644 --- a/meta/classes/rootfs_deb.bbclass +++ b/meta/classes/rootfs_deb.bbclass | |||
@@ -107,9 +107,14 @@ delayed_postinsts () { | |||
107 | } | 107 | } |
108 | 108 | ||
109 | save_postinsts () { | 109 | save_postinsts () { |
110 | # Scripts need to be ordered when executed, this ensures numeric order | ||
111 | # If we ever run into needing more the 899 scripts, we'll have to | ||
112 | # change num to start with 1000. | ||
113 | num=100 | ||
110 | for p in $(delayed_postinsts); do | 114 | for p in $(delayed_postinsts); do |
111 | install -d ${IMAGE_ROOTFS}${sysconfdir}/deb-postinsts | 115 | install -d ${IMAGE_ROOTFS}${sysconfdir}/deb-postinsts |
112 | cp ${IMAGE_ROOTFS}/var/lib/dpkg/info/$p.postinst ${IMAGE_ROOTFS}${sysconfdir}/deb-postinsts/$p | 116 | cp ${IMAGE_ROOTFS}/var/lib/dpkg/info/$p.postinst ${IMAGE_ROOTFS}${sysconfdir}/deb-postinsts/$num-$p |
117 | num=`echo \$((num+1))` | ||
113 | done | 118 | done |
114 | } | 119 | } |
115 | 120 | ||