Skip to content

Commit

Permalink
use data.vmdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuichiro Nakada committed Feb 13, 2023
1 parent 357392d commit 1a7754b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ $ berry-os
* If use MicroG, check Google device registration, Cloud Messaging, Google SafetyNet
* If needed, enable native bridge

## How to uninstall

- sudo rpm -e berry-os*rpm
- rm -rf ~/.local/share/berry-os/

## List of compatible applications

* Genshin Impact
Expand Down
15 changes: 10 additions & 5 deletions berry-os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@ initrd=/opt/berry-os/initrd.img
kernel=/opt/berry-os/kernel

datasize=1000
data=~/.local/share/berry-os/data.img
#data=~/.local/share/berry-os/data.img
data=~/.local/share/berry-os/data.vmdk
if [ ! -r ${data} ]; then
mkdir -p ~/.local/share/berry-os/
dd if=/dev/zero of=${data} bs=1M count=${datasize}
mkfs.ext4 -F -m1 ${data}
mkdir -p ~/.local/share/berry-os/
pushd ~/.local/share/berry-os/
unzip -x /opt/berry-os/data.zip
popd
#dd if=/dev/zero of=${data} bs=1M count=${datasize}
#mkfs.ext4 -F -m1 ${data}
#qemu-img create -f vmdk ${data} 40G
fi

qemu-system-x86_64 \
Expand All @@ -27,6 +32,6 @@ qemu-system-x86_64 \
-device virtio-vga-gl -display gtk,grab-on-hover=on,gl=on \
-drive index=0,if=virtio,id=system,file=${sys},format=raw \
-drive index=1,if=virtio,id=ramdisk,file=${ram},format=raw \
-drive index=2,if=virtio,id=data,file=${data},format=raw \
-drive index=2,if=virtio,id=data,file=${data},format=vmdk \
-initrd ${initrd} \
-kernel ${kernel} -append "root=/dev/ram0 RAMDISK=vdb DATA=vdc SRC=/berry SETUPWIZARD=0"
Binary file added data.zip
Binary file not shown.
1 change: 1 addition & 0 deletions make_berry-os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ mkdir -p ${tdir}/opt/berry-os
cp -a ${sys} ${ram} ${initrd} ${kernel} ${tdir}/opt/berry-os/
cp -a berry-os.sh ${tdir}/opt/berry-os/
cp -a berry-os.spec ${tdir}/opt/berry-os/
cp -a data.zip ${tdir}/opt/berry-os/

pushd ${tdir}

Expand Down

0 comments on commit 1a7754b

Please sign in to comment.