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: (6) </ 1 2 3 [4] 5 6 >/

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

reply to topic new topic new poll
Topic: dsl2unc, .unc extensions made easy< Next Oldest | Next Newest >
torp Offline





Group: Members
Posts: 172
Joined: July 2005
Posted: Mar. 28 2007,02:44 QUOTE

can someone instruct me how to use this script? Do I copy and paste the text above, and save it as a script? Sounds like a fantastic little tool.
guess i need to get off my ass and read up on scripting....

torp


--------------
-|||-----|||-
Back to top
Profile PM 
andrewb Offline





Group: Members
Posts: 316
Joined: July 2005
Posted: Mar. 28 2007,04:14 QUOTE

copy the script & save to a file called dsl2unc

type 'chmod 777 dsl2unc'

type 'dsl2unc <fname>.dsl'

It is a good idea to use the declobber script on the dsl file first - search for declobber in the forums. declobber is copied & saved the same way. To use it properly the system needs to be booted with the cheatcode 'dsl legacy' & then the declobber script run as 'sudo declobber <fmane>.dsl'. This script removes un-needed directories from the dsl files so they don't overwrite system directories.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: June 08 2007,08:49 QUOTE

There's something I don't quite understand here...

I am compiling in /opt/xorg72 with the following subdirectories:

/bin
/etc
/include
/lib
/share
/var

I ran dsl2unc and got a user.tar.gz that contained (I think - the file was too large to unpack in the limited memory I had) everything in /lib and a couple of the other subdirectories. Is this is what is meant to happen? By removing opt from the line:

find home opt tmp 2>/dev/null | dir_filter | xargs tar -czvf user.tar.gz 2>/dev/null

I can stop this but perhaps I have missed the logic?
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: June 08 2007,12:33 QUOTE

Ah... If I make a unc extension from a dsl extension that unpacks to /opt/xorg72, I guess the unc will build on top of itself - is that the problem?
Back to top
Profile PM 
WDef Offline





Group: Members
Posts: 798
Joined: Sep. 2005
Posted: June 08 2007,21:02 QUOTE

Hi Juanito

If you've got it all compiled and running ok from /opt,  you should build a uci instead of an unc

Uncs perhaps aren't best used to create a union with / of a filesystem mounted on /opt/whatever when that just effectively puts things in /opt/whatever -  that's a redundant use of unionfs.

[I'll test this circumstance tomorrow - it's bed time where I am]

dsl2unc should just put the lot into user.tar.gz or so I thought  ... otherwise you've found me a new bug.

Most .dsl extensions ordinarily have few files in /opt as things go ... usually wrappers and suchlike - if they're all in /opt they should just have tar.gz endings to avoid calling mkwriteable, and better still - they should be ucis.
Back to top
Profile PM 
25 replies since Sep. 14 2006,19:06 < Next Oldest | Next Newest >

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

Pages: (6) </ 1 2 3 [4] 5 6 >/
reply to topic new topic new poll
Quick Reply: dsl2unc

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