Updated some info plu fixed some logic...

This commit is contained in:
2017-10-31 00:26:10 -05:00
parent 642cbb9caf
commit 4f30f17a23
3 changed files with 51 additions and 34 deletions

View File

@@ -123,9 +123,10 @@ main() {
chrootr
elif [ -f *.iso ]; then
clear
echo "Iso found. Mounting and copying to proper file structure. Then chrooting in...\n"
echo "Iso found; mounting and copying to proper file structure. Then chrooting in..."
sleep 4
mountAndCopy
mountAndCopy
chrootr
fi
}
@@ -135,12 +136,12 @@ mountAndCopy() {
## Prep filesystem
mount -o loop *.iso mnt/
cp -r mnt/. iso/ && \
mv iso/casper/filesystem.squashfs .
cp -r mnt/. iso/ && \
mv iso/casper/filesystem.squashfs .
## Unspuashfs the squashfs
unsquashfs filesystem.squashfs && \
rm filesystem.squashfs
rm filesystem.squashfs
## Cleanup some prep items
umount mnt/ && rmdir mnt/
@@ -150,8 +151,6 @@ mountAndCopy() {
}
chrootr() {
## Set Xephyr and set chrooting mounts
Xephyr -resizeable -screen "${RES}" "${ID}" &
cd squashfs-root/