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
 

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

reply to topic new topic new poll
Topic: Frugal Install suggestion, Replace cp...< Next Oldest | Next Newest >
Fallen Kell Offline





Group: Members
Posts: 21
Joined: May 2005
Posted: June 09 2005,16:47 QUOTE

Just thought I would make a suggestion, as this is a change I needed to make.

Make the following change to the frugal_install.sh

Replace the following line:
cp -af $IMAGE/* /mnt/$TARGET

With:
(cd $IMAGE; tar cf - ./*) | (cd /mnt/$TARGET; tar xvf -)

There are a number of good reasons for doing so, but the main reason being the fact that tar keeps track of the entire archive and knows if something was not completely transfered.
Back to top
Profile PM 
Fallen Kell Offline





Group: Members
Posts: 21
Joined: May 2005
Posted: June 09 2005,17:42 QUOTE

This might also be a good idea with the regular install, but I personally do not use that option (yet at least).

Oh, one other thing, this will actually print out the files as they get copied, so you get a rough idea that it is doing what it should be as well.
Back to top
Profile PM 
friedgold Offline





Group: Members
Posts: 122
Joined: Mar. 2005
Posted: June 09 2005,22:07 QUOTE

Quote (Fallen Kell @ June 09 2005,13:42)
This might also be a good idea with the regular install, but I personally do not use that option (yet at least).

Oh, one other thing, this will actually print out the files as they get copied, so you get a rough idea that it is doing what it should be as well.

Actually it seems like your method is already used with the dsl-hdinstall. From /usr/sbin/dsl-hdinstall:
Code Sample
echo "${BLUE}Now the root filesystem is filled with data...${NORMAL}"

tar -C /KNOPPIX -cf - . | tar -C $TR -xf -
Back to top
Profile PM 
2 replies since June 09 2005,16:47 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: Frugal Install suggestion

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