DSL Ideas and Suggestions :: Frugal Install suggestion



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.

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.

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 -


original here.