diff mbox

[1/5] Revert "UBUNTU: [Debian] dtb: symlink /lib/firmware/(uname -r)/device-tree to /boot/dtb-(uname -r) to make flash-kernel happy"

Message ID 1409570949-18455-2-git-send-email-paolo.pisati@canonical.com
State New
Headers show

Commit Message

Paolo Pisati Sept. 1, 2014, 11:29 a.m. UTC
This reverts commit dab5e56d63c3a96a20fa107bb8ca41eb96b14b0e.

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
---
 debian/control-scripts/postinst | 2 --
 debian/control-scripts/postrm   | 1 -
 2 files changed, 3 deletions(-)
diff mbox

Patch

diff --git a/debian/control-scripts/postinst b/debian/control-scripts/postinst
index 39450cb..7e99410 100644
--- a/debian/control-scripts/postinst
+++ b/debian/control-scripts/postinst
@@ -930,13 +930,11 @@  else {
 if (-e "$dtb-$version") {
   if (! defined $ARGV[1] || ! $ARGV[1] || $ARGV[1] =~ m/<unknown>/og) {
 	image_magic($dtb, $image_dest);
-	system("ln -s /boot/dtb-$version /lib/firmware/$version/device-tree");
   }
   else {
 	if (! -e "$dtb") {
 	  handle_missing_link($dtb, $image_dest, "$dtb-$version", 
 						  $realimageloc);
-	  system("ln -s /boot/dtb-$version /lib/firmware/$version/device-tree");
 	}
 	else {
 	  print STDERR
diff --git a/debian/control-scripts/postrm b/debian/control-scripts/postrm
index 9056eb7..cb20376 100644
--- a/debian/control-scripts/postrm
+++ b/debian/control-scripts/postrm
@@ -350,7 +350,6 @@  if ($ARGV[0] !~ /upgrade/) {
   image_magic("initrd.img.old", $image_dest) if $initrd;
   image_magic("dtb",     $image_dest);
   image_magic("dtb.old", $image_dest);
-  system("rm -f /lib/firmware/$version/device-tree");
 }
 
 exit 0;