[use swap partition has root filesystem storage, (untested)
timo.lindfors@iki.fi**20080314094835] {
hunk ./scripts/local-premount 39
-if [ "$ramroot_fs" = "solid" ]; then
-    storage="/dev/disk/by-uuid/$ramroot_fs_uuid"
-    while [ ! -e $storage ]; do
-	sleep 2;
+if [ "$ramroot_fs" = "swap" ]; then
+    d="/dev/disk/by-uuid/$ramroot_fs_uuid"
+    while [ ! -e $d ]; do
+	ls -l /dev/disk/by-uuid
+	echo "waiting for ramroot_fs"
+	sleep 2
hunk ./scripts/local-premount 46
-    mke2fs -F $storage
-    tune2fs -f -U $ramroot_fs_uuid $storage
+
+    if [ `/lib/udev/vol_id -t $d` != "swap" ]; then
+	echo "ramroot_fs_uuid does not point to swap!"
+	/bin/sh
+    fi
+
+    losetup -o 4096 /dev/loop7 $d
+    mke2fs /dev/loop7
hunk ./scripts/local-premount 56
-    echo ROOT=$storage >> /conf/param.conf
+    echo ROOT=/dev/loop7 >> /conf/param.conf
hunk ./scripts/local-top 13
+echo "export ramroot_fs_uuid=ffda8257-f78a-4893*" >> /conf/param.conf
}
