Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Get file list from unc, Is there a way to do this?< Next Oldest | Next Newest >
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Jan. 13 2007,09:19 QUOTE

Is there a way to get a list of the files in a unc extension from the extension?

The reason I ask, is that I would like to add/change some files in an extension and I would like to avoid starting from scratch, eg downloading the packages, editing the file lists, making a dsl and converting it to a unc...
Back to top
Profile PM 
JB4x4 Offline





Group: Members
Posts: 77
Joined: Oct. 2005
Posted: Jan. 13 2007,09:23 QUOTE

Look in /opt for the directory pertaining to the extension your working on.  UNC's are mounted there (similar to a UCI) before they are added to the filesystem with Unionfs.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Jan. 13 2007,13:28 QUOTE

Thanks - but knowing this, is there a way to generate a text file similar to that obtained by "dpkg -L package_name > package_name.txt"
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 13 2007,13:57 QUOTE

Well....while it's mounted you can do
find /opt/package_name > package_name.txt

However, this will list user.tar.gz (if it exists) rather than any specific files installed into /home/dsl


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Jan. 13 2007,23:24 QUOTE

When I want to 'work' on a unc extension, I do the following:

1. Mount it

  mkdir /opt/xyz
  mount xyz.unc /opt/xyz.unc -t iso9660 -o ro,loop=/dev/cloop63

2. Unpack it

   mkdir /home/dsl/xyz
   tar -C /opt/xyz.unc -cf - . | tar -C /home/dsl/xyz -xf -

3. Make changes

   cd /home/dsl/xyz

   -- edit changes as required --

4. Pack it backup

   cd ..
   mkisofs -R -hide-rr-moved -cache-inodes -pad xyz/ | create_compressed_fs - 65536 > xyz.unc

------------------------------------------------------

In fact if you wish to try to go from debs to unc, give this a try:

I will use the deb package feh as an example.
Also note you MUST start with an empty /var/cache/apt/archives

apt-get -d -y install feh
mkdir /opt/feh
for DEB in `ls -1 /var/cache/apt/archives/`; do
  dpkg -x "$DEB" /opt/feh
done
cd /opt
mkisofs -R -hide-rr-moved -cache-inodes -pad feh/ | create_compressed_fs - 65536 > /home/dsl/feh.unc

Then try the mydsl-load feh.unc, if it works, then use the above procedure to open it up to add a user.tar.gz for menu and optional icon item.

Have fun.


Edited by roberts on Jan. 14 2007,04:51
Back to top
Profile PM WEB 
8 replies since Jan. 13 2007,09:19 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Get file list from unc

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code