WDCommunity / wdpksrc

Cross compilation framework to create native packages for the Western Digital My Cloud
BSD 3-Clause "New" or "Revised" License
218 stars 57 forks source link

Add packages to WD app browser #18

Open stefaang opened 6 years ago

stefaang commented 6 years ago

Add an 'appstore' hook into the WD web UI to fetch the latest packages.

stefaang commented 5 years ago

See here https://github.com/hashashin/mycloudapps/tree/master/CustomAppList

stefaang commented 5 years ago

Chattr doesn't work on tmpfs, you need to bind-mount an ext4 volume first. See https://github.com/hashashin/mycloudapps/issues/1

JediNite commented 4 years ago

stefaang,

I just read your comment in https://github.com/hashashin/mycloudapps/issues/1. I just checked on the EX4100 and found the following :

root@WDMyCloudEX4100 xml # pwd
/var/www/xml
root@WDMyCloudEX4100 xml # df -k .
Filesystem           1K-blocks      Used Available Use% Mounted on
%root%                   55529     32372     20290  61% /
root@WDMyCloudEX4100 xml # mount | grep root
%root% on / type unknown (rw)
root@WDMyCloudEX4100 xml # touch blah
root@WDMyCloudEX4100 xml # ls -al blah
-rw-r--r--    1 root     root             0 Oct  4 08:48 blah

Not sure if that helps you to work out why this might work with no issues on ARM.

Cheers,

JediNite

stefaang commented 4 years ago

Some extra info.

root@MyCloudEX2Ultra home # /bin/mount | /bin/grep root
%root% on / type unknown (rw)
root@MyCloudEX2Ultra home # cat /proc/mounts | grep root
rootfs / rootfs rw 0 0
/dev/root / ext2 rw,relatime,errors=continue 0 0
root@MyCloudEX2Ultra home # cat /etc/fstab | grep ram
/dev/ram0   /       ext2    defaults    1   1
root@MyCloudEX2Ultra home # /opt/bin/lsattr /var/www/xml/app_info.xml 
------------------- /var/www/xml/apkg_all.xml

root@MyCloudPR4100 home # /bin/mount | /bin/grep root
%root% on / type unknown (rw)
root@MyCloudPR4100 home # cat /proc/mounts | grep root
rootfs / rootfs rw,relatime 0 0
root@MyCloudPR4100 home # /opt/bin/lsattr /var/www/xml/app_info.xml 
lsattr: Inappropriate ioctl for device While reading flags on /var/www/xml/app_info.xml

Searching for answers.. https://unix.stackexchange.com/questions/295060/why-on-some-linux-systems-does-the-root-filesystem-appear-as-dev-root-instead https://www.linuxquestions.org/questions/slackware-14/slackware-current-dev-root-688189/page2.html