Всем ку!
Вопрос по openwrt
1) mkdir /overlay/usr
2) chmod 777 /overlay/usr
3) mount -t tmpfs -o size=2M,mode=777 tmpfs /overlayfs/usr
4) «cat /proc/mounts» output
rootfs / rootfs rw 0 0
/dev/root /rom squashfs ro,relatime 0 0
proc /proc proc rw,noatime 0 0
sysfs /sys sysfs rw,noatime 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,noatime 0 0
tmpfs /tmp/root tmpfs rw,noatime,mode=755 0 0
tmpfs /dev tmpfs rw,relatime,size=512k,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
/dev/mtdblock3 /overlay jffs2 rw,noatime 0 0
overlayfs:/overlay / overlayfs rw,noatime,lowerdir=/,upperdir=overlay 0 0
tmpfs /overlay/usr tmpfs rw,relatime,size=2048k,mode=777 0 0
Потом пробую установить пакет (например zlib)
5) opkg update
opkg install zlib --force-space
И вот текст ошибки
Installing zlib (1.2.8-1) to root...
Downloading http://downloads.openwrt.org/barrier_br … r71xx.ipk.
Collected errors:
* wfopen: //usr/lib/opkg/info/zlib.control: File exists.
* extract_archive: Cannot create symlink from ./usr/lib/libz.so to 'libz.so.1.2.8': File exists.
* wfopen: /usr/lib/libz.so.1.2.8: File exists.
* extract_archive: Cannot create symlink from ./usr/lib/libz.so.1 to 'libz.so.1.2.8': File exists.
* set_flags_from_control: Failed to open //usr/lib/opkg/info/zlib.control: No such file or directory.
* pkg_write_filelist: Failed to open //usr/lib/opkg/info/zlib.list: File exists.
* opkg_install_pkg: Failed to extract data files for zlib. Package debris may remain!
* opkg_install_cmd: Cannot install package zlib.
* opkg_conf_write_status_files: Can't open status file //usr/lib/opkg/status: File exists.
Пожалуйста, помогите!
Прим: без монтирования tmpfs в каталог /overlay/usr создается каталог /overlay/usr в файловой системе overlayfs