ps2homebrew / hdl-dump

Install games in HDLoader format to APA-formatted hard drive
126 stars 25 forks source link

Install raw image disk [FR] #49

Open bignaux opened 2 years ago

bignaux commented 2 years ago

Checks

Describe the FR

Provide a way to install raw image as easy as game. Need refactoring code to separate ISO handling from APA partition creation. I thought libblkid could to the job to get info about the block device going to be injected.

Describe the solution you'd like

hdl_dump inject <device> <disc_file> <options> inject disc_file according to its proprieties (iso, ext2, swap, fat32, pfs ... )

Describe alternatives you've considered

No response

Additional context

Now i've device-mapping i could use host mkfs and mount it to populate, so i'm concentrate on mkpart-like.

bignaux commented 2 years ago

For reference : https://github.com/util-linux/util-linux/issues/1614 Could interest @frno7

frno7 commented 2 years ago

Indeed, with issue https://github.com/frno7/linux/issues/39, thanks @bignaux!

bignaux commented 2 years ago

Guideline for PS2 Linux

Use UUIDs for boot and swap partitions to share them between different linux. See https://systemd.io/DISCOVERABLE_PARTITIONS/ .If i understand, it has to be at APA level to mimic GPT UUID, so it's right place (linux installer hdl_dump) to speak about it.

we could also use others.

need