mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-29 11:41:31 +00:00
use e2fs-zero.py for real.
This commit is contained in:
parent
642a8d9ad9
commit
7ad9bb6440
12
livecd.sh
12
livecd.sh
@ -302,12 +302,12 @@ deb-src ${SRCMIRROR} ${STE}-security ${COMP}
|
|||||||
rsync -a --delete --inplace --no-whole-file ${ROOT} livecd.mnt
|
rsync -a --delete --inplace --no-whole-file ${ROOT} livecd.mnt
|
||||||
umount $DEV
|
umount $DEV
|
||||||
rm -rf partimg-${IMGNAME}.*
|
rm -rf partimg-${IMGNAME}.*
|
||||||
if [ -x /usr/sbin/partimage ]; then
|
#if [ -x /usr/sbin/partimage ]; then
|
||||||
partimage -b -z0 --nodesc -f3 -c -o -y save $DEV partimg-${IMGNAME}
|
# partimage -b -z0 --nodesc -f3 -c -o -y save $DEV partimg-${IMGNAME}
|
||||||
cat partimg-${IMGNAME}.*|partimage -b -z0 --nodesc -e -f3 -c -o -y restore $DEV stdin
|
# cat partimg-${IMGNAME}.*|partimage -b -z0 --nodesc -e -f3 -c -o -y restore $DEV stdin
|
||||||
else
|
#else
|
||||||
/usr/sbin/e2fs-zero.py new-${IMGNAME}
|
/usr/sbin/e2fs-zero.py -w new-${IMGNAME}
|
||||||
fi
|
#fi
|
||||||
losetup -d $DEV
|
losetup -d $DEV
|
||||||
mv new-${IMGNAME} ${IMGNAME}
|
mv new-${IMGNAME} ${IMGNAME}
|
||||||
cp ${IMGNAME} old-${IMGNAME}
|
cp ${IMGNAME} old-${IMGNAME}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user