mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
packages/image/install: change qemu image files (size, format, label)
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
f689707eb1
commit
7c2e6aecc6
@ -177,16 +177,16 @@ case "$2" in
|
|||||||
mkdir -p $TARGET_IMG
|
mkdir -p $TARGET_IMG
|
||||||
rm -rf $TARGET_IMG/OpenELEC-$TARGET_VERSION-qemu.flash
|
rm -rf $TARGET_IMG/OpenELEC-$TARGET_VERSION-qemu.flash
|
||||||
qemu-img create -f raw $TARGET_IMG/OpenELEC-$TARGET_VERSION-qemu.flash 128M
|
qemu-img create -f raw $TARGET_IMG/OpenELEC-$TARGET_VERSION-qemu.flash 128M
|
||||||
/sbin/mkfs.ext3 -L OpenELEC -F $TARGET_IMG/OpenELEC-$TARGET_VERSION-qemu.flash
|
/sbin/mkfs.ext4 -L Boot -F $TARGET_IMG/OpenELEC-$TARGET_VERSION-qemu.flash
|
||||||
|
|
||||||
mkdir -p $ROOT/.tmp
|
mkdir -p $ROOT/.tmp
|
||||||
sudo mount -o loop $TARGET_IMG/OpenELEC-$TARGET_VERSION-qemu.flash $ROOT/.tmp
|
sudo mount -o loop $TARGET_IMG/OpenELEC-$TARGET_VERSION-qemu.flash $ROOT/.tmp
|
||||||
cp -R $TARGET_IMG/OpenELEC-$TARGET_VERSION.system $ROOT/.tmp/openelec.system
|
cp -R $TARGET_IMG/OpenELEC-$TARGET_VERSION.system $ROOT/.tmp/openelec.system
|
||||||
sudo umount $ROOT/.tmp
|
sudo umount $ROOT/.tmp
|
||||||
|
|
||||||
rm -rf $TARGET_IMG/OpenELEC-$TARGET_VERSION-qemu.store
|
rm -rf $TARGET_IMG/OpenELEC-$TARGET_VERSION-qemu.storage
|
||||||
qemu-img create -f raw $TARGET_IMG/OpenELEC-$TARGET_VERSION-qemu.store 40M
|
qemu-img create -f raw $TARGET_IMG/OpenELEC-$TARGET_VERSION-qemu.storage 500M
|
||||||
/sbin/mkfs.ext3 -L OpenELEC -F $TARGET_IMG/OpenELEC-$TARGET_VERSION-qemu.store
|
/sbin/mkfs.ext4 -L Storage -F $TARGET_IMG/OpenELEC-$TARGET_VERSION-qemu.storage
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user