[oe-commits] John Lee : udev_*.bb: honer $D in postinst scripts.

GIT User account git at amethyst.openembedded.net
Mon Dec 22 06:29:24 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 4e6cc0f7dc707c19a6e8cf29e58aa0a19a018435
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=4e6cc0f7dc707c19a6e8cf29e58aa0a19a018435

Author: John Lee <john_lee at openmoko.org>
Date:   Mon Dec 22 14:25:35 2008 +0800

udev_*.bb: honer $D in postinst scripts.

Otherwise it will overwrite host udev settings in a toolchain
environment.

Patch created by Christopher Hall <hsw at openmoko.com>

---

 packages/udev/udev_092.bb |    4 ++--
 packages/udev/udev_097.bb |    4 ++--
 packages/udev/udev_100.bb |    4 ++--
 packages/udev/udev_118.bb |    4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

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 f1dba7f..2aa71d6 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
 }
 





More information about the Openembedded-commits mailing list