Skip to content
Snippets Groups Projects
Select Git revision
  • 02fd2d04b0623019ecd449c5965463700ff7735d
  • experimental default protected
  • v2023.2.5-ffs
  • nrb/ex400-remove-wps
  • nrb/airmax-test
  • v2023.2.4-ffs
  • nrb/ar9344-reset-sequence
  • autinerd/experimental-openwrt-24.10
  • v2023.2.3-ffs
  • v2023.2.2-ffs
  • v2023.2-ffs
  • v2023.1-ffs
  • v2022.1.4-ffs
  • feature/addMikrotikwAP
  • v2022.1.3-ffs
  • v2021.1.2-ffs
  • v2022.1.1-ffs
  • master protected
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • experimental-2025-06-22
  • experimental-2025-06-22-base
  • v2023.2.5-ffs0.1
  • experimental-2025-06-08
  • experimental-2025-06-08-base
  • experimental-2025-06-06
  • experimental-2025-06-06-base
  • experimental-2025-05-27
  • experimental-2025-05-27-base
  • experimental-2025-05-18
  • experimental-2025-05-18-base
  • experimental-2025-05-15
  • experimental-2025-05-15-base
  • experimental-2025-05-13
  • experimental-2025-05-13-base
  • experimental-2025-05-08
  • experimental-2025-05-08-base
  • experimental-2025-05-05
  • experimental-2025-05-05-base
  • experimental-2025-05-02
41 results

uplink.rst

Blame
  • 0023-x86-sysupgrade-explicitly-rescan-disk-after-writing-partition-table.patch 1.01 KiB
    From: Matthias Schiffer <mschiffer@universe-factory.net>
    Date: Wed, 3 May 2017 09:08:29 +0200
    Subject: x86: sysupgrade: explicitly rescan disk after writing partition table
    
    This should ensure that the kernel partition can be mounted in
    platform_copy_config when its size has changed.
    
    Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
    
    diff --git a/target/linux/x86/base-files/lib/upgrade/platform.sh b/target/linux/x86/base-files/lib/upgrade/platform.sh
    index 4fa71999be7be3972676a1019488972dccd57fa2..439ba8f5125d97932248ff966340165a84e1b24a 100644
    --- a/target/linux/x86/base-files/lib/upgrade/platform.sh
    +++ b/target/linux/x86/base-files/lib/upgrade/platform.sh
    @@ -70,6 +70,12 @@ platform_do_upgrade() {
     
     	if [ -n "$diff" ]; then
     		get_image "$@" | dd of="/dev/$diskdev" bs=4096 conv=fsync
    +
    +		# Separate removal and addtion is necessary; otherwise, partition 1
    +		# will be missing if it overlaps with the old partition 2
    +		partx -d - "/dev/$diskdev"
    +		partx -a - "/dev/$diskdev"
    +
     		return 0
     	fi