Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#2522 - x86 sysupgrade not working #7310

Open
openwrt-bot opened this issue Sep 28, 2019 · 0 comments
Open

FS#2522 - x86 sysupgrade not working #7310

openwrt-bot opened this issue Sep 28, 2019 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

sharbich:

Hi,
if I start "sysupgrade -v /tmp/openwrt-x86-64-combined-squashfs.img.gz" my image will not be updated.

System:
OpenWrt 18.06-SNAPSHOT, r7876-491e839262

Package:
sysupgrade

Problem:
As I mentioned earlier, I was suspicious that gzip wasn't making it to the ramdisk..so I did some digging into how the ramdisk is assembled and found the gzip was indeed missing from the list of packages to copy over in /lib/upgrade/stage2.

Solution:
Here is the relevant function, note how gzip is missing from the list of binaries!

/lib/upgrade/stage2

switch_to_ramfs() {
for binary in
/bin/busybox /bin/ash /bin/sh /bin/mount /bin/umount
pivot_root mount_root reboot sync kill sleep
md5sum hexdump cat zcat bzcat dd tar \

  •   ls basename find cp mv rm mkdir rmdir mknod touch chmod \
    
  •   ls basename find cp mv rm mkdir rmdir mknod touch chmod gzip \
      '[' printf wc grep awk sed cut				\
      mtd partx losetup mkfs.ext4				\
      ubiupdatevol ubiattach ubiblock ubiformat		\
      ubidetach ubirsvol ubirmvol ubimkvol			\
      snapshot snapshot_tool					\
      $RAMFS_COPY_BIN
    
    do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant