Skip to content
Snippets Groups Projects
  1. Feb 09, 2016
    • Jo-Philipp Wich's avatar
      x86: preserve partition table on sysupgrade · 4aeeead3
      Jo-Philipp Wich authored
      
      With this patch sysupgrade will write directly to the partitions
      instead of to the main disk.  The UUID is copied from the image
      to the MBR as well.  This prevents the mbr from being completely
      overwritten and losing the partition table.  The -p option has
      been added to maintain the original behavior and overwite the
      entire disk with the new image.  Tests have been added to ensure
      that the image partitions match up with the active partitions.
      
      Signed-off-by: default avatarRob Mosher <nyt-openwrt@countercultured.net>
      
      SVN-Revision: 48682
      4aeeead3
  2. Jan 25, 2016
  3. Jan 22, 2016
  4. Sep 14, 2015
    • John Crispin's avatar
      base-files: sysupgrade: quote source image name · 4ef319fa
      John Crispin authored
      
      get_image() eval a filename without quoting it, resulting in errors with
      filenames containing characters that need to be escaped.
          $ sysupgrade -T -f ./cfg\(12\).tar.gz img.bin; echo $?
          Image check 'platform_check_image' failed.
          Invalid config file. Please use only .tar.gz files
          1
          $ mv cfg\(12\).tar.gz cfg_12.tar.gz
          $ mv img\(1\).bin img.bin
          sysupgrade -T -f ./cfg_12.tar.gz img.bin; echo $?
          0
      
      Enclose the content of $from in double quotes.
      
      Signed-off-by: default avatarAdrien Schildknecht <adrien+dev@schischi.me>
      
      SVN-Revision: 46919
      4ef319fa
  5. Jun 05, 2015
  6. May 29, 2015
  7. Nov 19, 2014
  8. Nov 18, 2014
    • Jonas Gorski's avatar
      base-files: properly fix copying ld*.so with eglibc · 2e95b1fd
      Jonas Gorski authored
      
      r36107 ("base-files: sysupgrade fail with eglibc") tried to fix
      sysupgrade by changing the ld-soname to what is expected, but only
      fixed MIPS while breaking ARM.
      
      The underlying issue is that the ld.so name varies widely across
      different architectures for eglibc:
      
      eglibc-2.19-r25243$ grep -r "ld-soname :=" . | awk '{ print $3 }' | sort -u
      ld64.so.1
      ld64.so.2
      ld-linux-aarch64_be.so.1
      ld-linux-aarch64.so.1
      ld-linux-armhf.so.3
      ld-linux-mipsn8.so.1
      ld-linux.so.2
      ld-linux.so.3
      ld-linux-x32.so.2
      ld-linux-x86-64.so.2
      ld.so.1
      
      Instead of adding each different soname to check for and copy it,
      replace the awk script with a sed script to extract it properly and
      drop the hardcoded so-name.
      
      Signed-off-by: default avatarJonas Gorski <jogo@openwrt.org>
      
      SVN-Revision: 43295
      2e95b1fd
  9. Oct 19, 2014
  10. Jul 10, 2014
  11. Jul 01, 2014
  12. Jun 20, 2014
  13. Jun 19, 2014
  14. Jun 11, 2014
  15. Jun 02, 2014
  16. Apr 07, 2014
  17. Apr 03, 2014
  18. Mar 12, 2014
  19. Dec 27, 2013
  20. Dec 09, 2013
  21. Nov 14, 2013
    • Felix Fietkau's avatar
      ar71xx: Unifi AP Pro sysupgrade patch · ff17114b
      Felix Fietkau authored
      
      The current implementation of mtd will not append the backup
      file created by sysupgrade to the correct partition, as mtd will append
      the data to first jffs2 partition it finds. As the kernel is also
      stored on a jffs2 partition (which resides before the overlay
      partition), the data will be appended to this partition.
      
      To fix this problem, a new option
      
      -s <number>             skip the first n bytes when appending data to the jffs2 partiton, defaults to "0"
      
      is added to mtd.
      
      Signed-off-by: default avatarPeter Wagner <tripolar@gmx.at>
      
      SVN-Revision: 38807
      ff17114b
  22. Nov 11, 2013
  23. Jul 14, 2013
  24. May 05, 2013
  25. Mar 22, 2013
  26. Mar 14, 2013
  27. Mar 13, 2013
  28. Dec 21, 2012
    • Mirko Vogt's avatar
      hot-fix nameclash in sysupgrade: rename pivot() to supivot() in sysupgrade · 4cca5cd4
      Mirko Vogt authored
      Sysupgrade defines its very own pivot() function.
      Prior merging boot.sh and functions.sh sysupgrade just included boot.sh,
      now it includes functions.sh which defines pivot() as well, however
      slightly different which causes sysupgrade to fail.
      
      This is a hot-fix to unbreak sysupgrade, however those two pivot()
      functions should actually get merged.
      
      SVN-Revision: 34815
      4cca5cd4
  29. Dec 19, 2012
    • Mirko Vogt's avatar
      Do not overload mount-call - trying to reduce confusion · 439a8690
      Mirko Vogt authored
      The behaviour of calling 'mount' differed depending on whether it called
      the busybox-mount, the mount of util-linux, the mount defined in
      /lib/functions.sh and /lib/functions/boot.sh
      
      /etc/preinit even included /lib/functions.sh and /lib/functions/boot.sh,
      both re-defining 'mount'.
      
      SVN-Revision: 34792
      439a8690
  30. Jul 03, 2012
  31. Jun 05, 2012
  32. May 23, 2012
  33. Nov 16, 2011
  34. Nov 08, 2011
Loading