Browse Source

Merge pull request #27 from bleuchtang/fix-pinning

create_arm_debootstrap: Fix debian pinning (for kernel and u-boot files)
Sebastien Badia 9 years ago
parent
commit
c9fa58ed1c
1 changed files with 12 additions and 4 deletions
  1. 12 4
      olinux/create_arm_debootstrap.sh

+ 12 - 4
olinux/create_arm_debootstrap.sh

@@ -209,18 +209,26 @@ fi
 if [ $INSTALL_KERNEL ] ; then
   if [ $INSTALL_KERNEL = 'testing' ] ; then
     echo 'deb http://ftp.fr.debian.org/debian testing main' > $TARGET_DIR/etc/apt/sources.list.d/testing.list
-    cat <<EOT > $TARGET_DIR/etc/apt/preferences.d/kernel-testing
+    # Install linux-image, u-boot and flash-kernel from testing (Debian strech)
+    cat <<EOT > ${TARGET_DIR}/etc/apt/preferences.d/kernel-testing
 Package: linux-image*
 Pin: release o=Debian,a=testing
-Pin-Priority: 990
+Pin-Priority: 100
 
 Package: u-boot*
 Pin: release o=Debian,a=testing
-Pin-Priority: 990
+Pin-Priority: 100
 
 Package: flash-kernel*
 Pin: release o=Debian,a=testing
-Pin-Priority: 990
+Pin-Priority: 100
+EOT
+
+    # And other packages from stable
+    cat <<EOT > ${TARGET_DIR}/etc/apt/preferences.d/stable
+Package: *
+Pin: release o=Debian,a=stable
+Pin-Priority: 900
 EOT
 
     umount_dir $TARGET_DIR