Frugal Install suggestion


Forum: DSL Ideas and Suggestions
Topic: Frugal Install suggestion
started by: Fallen Kell

Posted by Fallen Kell on June 09 2005,16:47
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.

Posted by Fallen Kell on June 09 2005,17: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.

Posted by friedgold on June 09 2005,22:07
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 -

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.