Hello John,

  I found a couple of places where $D was missing in some of the OE postinst
scripts.  Please see attached diffs.

-- 
Best regards.
Christopher Hall                      hswATopenmoko.com
diff --git a/classes/update-rc.d.bbclass b/classes/update-rc.d.bbclass
index 9b832c0..d068496 100644
--- a/classes/update-rc.d.bbclass
+++ b/classes/update-rc.d.bbclass
@@ -21,7 +21,12 @@ fi
 }
 
 updatercd_postrm() {
-update-rc.d $D ${INITSCRIPT_NAME} remove
+if test "x$D" != "x"; then
+	OPT="-r $D"
+else
+	OPT="-s"
+fi
+update-rc.d $OPT ${INITSCRIPT_NAME} remove
 }
 
 
diff --git a/packages/udev/udev_092.bb b/packages/udev/udev_092.bb
index 250b1d3..78060db 100644
--- a/packages/udev/udev_092.bb
+++ b/packages/udev/udev_092.bb
@@ -62,9 +62,9 @@ pkg_postinst_append() {
                 if test "$mp" = "/"
                 then
                         root_partition="$dev"
-                        echo "$root_partition" >> ${sysconfdir}/udev/mount.blacklist
+                        echo "$root_partition" >> $D${sysconfdir}/udev/mount.blacklist
                 fi
-        done < ${sysconfdir}/fstab
+        done < $D${sysconfdir}/fstab
 
 }
 
diff --git a/packages/udev/udev_097.bb b/packages/udev/udev_097.bb
index 397d3b9..7dce303 100644
--- a/packages/udev/udev_097.bb
+++ b/packages/udev/udev_097.bb
@@ -66,9 +66,9 @@ pkg_postinst_append() {
                 if test "$mp" = "/"
                 then
                         root_partition="$dev"
-                        echo "$root_partition" >> ${sysconfdir}/udev/mount.blacklist
+                        echo "$root_partition" >> $D${sysconfdir}/udev/mount.blacklist
                 fi
-        done < ${sysconfdir}/fstab
+        done < $D${sysconfdir}/fstab
 
 }
 
diff --git a/packages/udev/udev_100.bb b/packages/udev/udev_100.bb
index 1cd3c41..c579b78 100644
--- a/packages/udev/udev_100.bb
+++ b/packages/udev/udev_100.bb
@@ -64,9 +64,9 @@ pkg_postinst_append() {
                 if test "$mp" = "/"
                 then
                         root_partition="$dev"
-                        echo "$root_partition" >> ${sysconfdir}/udev/mount.blacklist
+                        echo "$root_partition" >> $D${sysconfdir}/udev/mount.blacklist
                 fi
-        done < ${sysconfdir}/fstab
+        done < $D${sysconfdir}/fstab
 
 }
 
diff --git a/packages/udev/udev_118.bb b/packages/udev/udev_118.bb
index 20fef83..ef1fb14 100644
--- a/packages/udev/udev_118.bb
+++ b/packages/udev/udev_118.bb
@@ -65,8 +65,8 @@ pkg_postinst_append() {
                 if test "$mp" = "/"
                 then
                         root_partition="$dev"
-                        echo "$root_partition" >> ${sysconfdir}/udev/mount.blacklist
+                        echo "$root_partition" >> $D${sysconfdir}/udev/mount.blacklist
                 fi
-        done < ${sysconfdir}/fstab
+        done < $D${sysconfdir}/fstab
 }
 

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
devel mailing list
[email protected]
https://lists.openmoko.org/mailman/listinfo/devel

Reply via email to