Modify

Opened 6 years ago

Last modified 4 years ago

#11931 new defect

opkg does not honour offline root parameter when upgrading or listing upgradables

Reported by: Lukasz Golec-Biernat <mojedokumenty+openwrt@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: opkg Cc:

Description

opkg (rev 618-2) does not honour -o/--offline-root parameter when upgrading (upgrade) or listing upgradables (list-upgrade) an external root location:

$ mount |grep /tmp/overlay
/dev/mtdblock3 on /tmp/overlay type jffs2 (rw,relatime)
$ opkg -o /tmp/overlay list-installed |grep e2fsprogs
e2fsprogs - 1.42.2-1
$ opkg list-upgradable -o /tmp/overlay
$ opkg upgrade --cache /misc/packages -o /tmp/overlay e2fsprogs
$ 

This bug prevents upgrading the jffs2-based overlay when booted off extroot.

No such issues persist when upgrading / listing upgrades under the global root location:

$ opkg list-installed |grep e2fsprogs
e2fsprogs - 1.42-3
$ opkg list-upgradable
e2fsprogs - 1.42-3 - 1.42.4-1
$ opkg upgrade --cache /misc/packages e2fsprogs
Upgrading e2fsprogs on root from 1.42-3 to 1.42.4-1...
Copying /misc/packages/e2fsprogs_1.42.4-1_ar71xx.ipk.
Configuring e2fsprogs.

opkg info, flag, list-installed behave ok with -o/--offline-root.

opkg details

$ opkg list-installed opkg
opkg - 618-2
$ uname -a
Linux host 3.3.8 #1 Fri Jul 27 01:39:55 PDT 2012 mips GNU/Linux
$ cat /etc/opkg.conf 
src/gz snapshots http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.