Modify

Opened 8 years ago

Closed 7 years ago

#4585 closed defect (fixed)

opkg fails for all dest if one is fuel

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: base system Version:
Keywords: Cc:

Description

#opkg -d nas install openvpn
Installing openvpn (2.0.9-4) to nas...
Downloading http://downloads.openwrt.org/kamikaze/8.09_RC2/brcm-2.4/packages//./openvpn_2.0.9-4_mipsel.ipk
Connecting to downloads.openwrt.org (195.56.146.238:80)
openvpn_2.0.9-4_mips 100% |***************************************************************************************|   151k --:--:-- ETA
Installing libopenssl (0.9.8i-3) to nas...
Collected errors:
 * Only have 1040 available blocks on filesystem /mnt/festplatte/router/, pkg libopenssl needs 1258
# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    1.6M      1.6M         0 100% /
/dev/root                 1.6M      1.6M         0 100% /rom
tmpfs                     7.0M      1.1M      5.9M  15% /tmp
/dev/mtdblock/4           1.7M    688.0k      1.0M  40% /jffs
mini_fo:/jffs             1.6M      1.6M         0 100% /
festplatte:/shares/mss-hdd/
                        189.4G    153.3G     36.1G  81% /mnt/festplatte

nas has the dest /mnt/festplatte/router and there a over 30G free.

(Running 8.09 RC2 brcm-2.4 on WRT54G)

Attachments (0)

Change History (7)

comment:1 Changed 8 years ago by apatrushev@…

Same problem on KAMIKAZE (8.09, r14127)

comment:2 Changed 7 years ago by wieszti

Also confirm in 8.09, r14511

root@OpenWrt:/usr/lib# opkg install libopenssl
Installing libopenssl (0.9.8i-3) to sd...
Collected errors:
 * Only have 1212 available blocks on filesystem /, pkg libopenssl needs 1258
root@OpenWrt:/usr/lib# df
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    1600      1600         0 100% /
/dev/root                 1600      1600         0 100% /rom
tmpfs                     7172       732      6440  10% /tmp
/dev/mtdblock/4           1728       516      1212  30% /jffs
mini_fo:/jffs             1600      1600         0 100% /
/dev/sdcard/part1      7702968     17924   7293748   0% /sdcard
root@OpenWrt:/usr/lib# cat /etc/opkg.conf
src/gz snapshots http://downloads.openwrt.org/kamikaze/8.09/brcm-2.4/packages
dest root /
dest sd /sdcard
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /jffs

comment:3 Changed 7 years ago by wieszti

root@OpenWrt:/usr/lib# opkg -dest sd install libopenssl
Installing libopenssl (0.9.8i-3) to sd...
Collected errors:

  • Only have 1212 available blocks on filesystem /sdcard/, pkg libopenssl needs 1258

comment:5 Changed 7 years ago by mat

Commenting "option overlay_root /jffs" fix the problem.

In the code (verify_pkg_installable) they first check overlay size, before check fs size :

if (!conf->force_space && pkg->installed_size != NULL) {

if (conf->overlay_root != NULL)

blocks_available = get_available_blocks(conf->overlay_root);

if (blocks_available < 0)

blocks_available = get_available_blocks(conf->default_dest->root_dir);


comment:6 Changed 7 years ago by wieszti

Or add your external media to opkg.conf option option overlay_root
Form me /sdcard like that:

rc/gz snapshots http://downloads.openwrt.org/kamikaze/8.09.1/brcm-2.4/packages
dest root /
dest sd /sdcard
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /jffs
option overlay_root /sdcard

comment:7 Changed 7 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

should be fixed with r18864

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.