wok rev 1060
slitaz-base-files: add repack_cleanup in receipt
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 15 15:17:39 2008 +0000 (2008-07-15) |
parents | 25b50c3dbac7 |
children | 90ac5dedc9bb |
files | slitaz-base-files/receipt |
line diff
1.1 --- a/slitaz-base-files/receipt Tue Jul 15 00:59:07 2008 +0200 1.2 +++ b/slitaz-base-files/receipt Tue Jul 15 15:17:39 2008 +0000 1.3 @@ -71,6 +71,19 @@ 1.4 { 1.5 local root 1.6 root=$1 1.7 + ( cd ./$1 ; cpio -o -H newc | gzip -9 ) > \ 1.8 + $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 1.9 +etc/passwd 1.10 +etc/fstab 1.11 +etc/hosts 1.12 +etc/hostname 1.13 +etc/group 1.14 +etc/gshadow 1.15 +etc/shadow 1.16 +etc/daemons.conf 1.17 +etc/nsswitch.conf 1.18 +etc/networks 1.19 +EOT 1.20 echo "Restoring files from /etc/etc.bak..." 1.21 cp -a $root/tmp/etc.bak/* $root/etc 2>/dev/null 1.22 rm -rf $root/tmp/etc.bak 1.23 @@ -100,3 +113,8 @@ 1.24 fi 1.25 } 1.26 SELF_INSTALL=1 1.27 + 1.28 +repack_cleanup() 1.29 +{ 1.30 + zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id ) 1.31 +}