Commit db0a14b0 authored by Andreas Schmidt's avatar Andreas Schmidt

add img folder, 18.04. odroid

parent 1f621d00
......@@ -5,8 +5,9 @@
*.h text eol=lf
*.py text eol=lf
*.mp4 binary
ubuntu-16.04.2-minimal-odroid-xu4-20170516.img.xz filter=lfs diff=lfs merge=lfs -text
img/ubuntu-16.04.2-minimal-odroid-xu4-20170516.img.xz filter=lfs diff=lfs merge=lfs -text
img/emmc_recovery.img.xz filter=lfs diff=lfs merge=lfs -text
2017-11-29-raspbian-stretch.img.xz filter=lfs diff=lfs merge=lfs -text
ubuntu-18.04-4.14-minimal-odroid-xu4-20180531.img.xz filter=lfs diff=lfs merge=lfs -text
img/ubuntu-18.04-4.14-minimal-odroid-xu4-20180531.img.xz filter=lfs diff=lfs merge=lfs -text
img/2017-11-29-raspbian-stretch.zip filter=lfs diff=lfs merge=lfs -text
rna.img.xz filter=lfs diff=lfs merge=lfs -text
......@@ -5,14 +5,14 @@ FILE="ubuntu-18.04-4.14-minimal-odroid-xu4-20180531"
apt-get update
apt-get install qemu-user-static pixz -y
pixz -d $FILE.img.xz $FILE.img
md5sum -c $FILE.img.md5
LIMIT=$(sfdisk -l --bytes $FILE.img | tail -n 1 | awk '{print $2}')
pixz -d img/$FILE.img.xz img/$FILE.img
md5sum -c img/$FILE.img.md5
LIMIT=$(sfdisk -l --bytes img/$FILE.img | tail -n 1 | awk '{print $2}')
DIR=/mnt/rna
mkdir $DIR
mount -o loop,offset=$((512 * $LIMIT)) $FILE.img $DIR
mount -o loop,offset=$((512 * $LIMIT)) img/$FILE.img $DIR
mount --bind /proc $DIR/proc/
mount --bind /sys $DIR/sys/
mount --bind /dev $DIR/dev/
......@@ -39,6 +39,6 @@ umount -l $DIR/sys
umount -l $DIR
mv $FILE.img rna.img
mv img/$FILE.img rna.img
pixz rna.img rna.img.xz
rm rna.img
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment