dynfilefs

pull/5/head v1.2
Tomas M 2012-10-11 21:03:13 -05:00
parent 6aa78b4f70
commit f5b34f6a2d
2 changed files with 6 additions and 6 deletions

View File

@ -42,7 +42,7 @@ cd static
./update ./update
cd .. cd ..
cp static/{busybox,mount.dynsizefs,mount.ntfs-3g} $INITRAMFS/bin cp static/{busybox,mount.dynfilefs,mount.ntfs-3g} $INITRAMFS/bin
chmod a+x $INITRAMFS/bin/{busybox,mount.*} chmod a+x $INITRAMFS/bin/{busybox,mount.*}
$INITRAMFS/bin/busybox | grep , | grep -v Copyright | tr "," " " | while read LINE; do $INITRAMFS/bin/busybox | grep , | grep -v Copyright | tr "," " " | while read LINE; do

View File

@ -338,12 +338,12 @@ persistent_changes()
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "* Activating dynamic sized storage for persistent changes" echo "* Activating dynamic sized storage for persistent changes"
rm "$T1" "$T2" 2>/dev/null rm "$T1" "$T2" 2>/dev/null
mount.dynsizefs "$CHANGES/changes.idx" "$CHANGES/changes.dat" 4096 "$2" mount.dynfilefs "$CHANGES/changes.dat" 4000 "$2"
if [ "$(device_bestfs "$2/dynsize.fs" | tr -d " ")" = "-t" ]; then if [ "$(device_bestfs "$2/loop.fs" | tr -d " ")" = "-t" ]; then
mke2fs -F "$2/dynsize.fs" >/dev/null mke2fs -F "$2/loop.fs" >/dev/null
fi fi
mount -o loop "$2/dynsize.fs" "$2" mount -o loop,sync "$2/loop.fs" "$2"
rmdir "$2/lost+found" rmdir "$2/lost+found"
else else
echo "* Activating native persistent changes" echo "* Activating native persistent changes"