-
Notifications
You must be signed in to change notification settings - Fork 14
Change type of disk image #1005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b4f3e4e
migrate: Fix typo resulting in not logging correctly
mattiaswal 6cfe5f8
Fix symlink in release packages
mattiaswal d3fa51e
Use qcow2 for disk image instead of raw image
mattiaswal 02080bf
qeneth: Move Infix test templates from qeneth to Infix
mattiaswal d5c5e38
CI: Store qcow2 disk images as release artififacts
mattiaswal 4a932de
Update changelog for 2025.04
mattiaswal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule qeneth
updated
8 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| if [ ! -e {{name}}.disk ]; then | ||
| qemu-img create -f raw {{name}}.disk 16M >/dev/null | ||
| mkfs.ext4 -q -L cfg {{name}}.disk | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| usb_cmd="" | ||
|
|
||
| if [ -n "{{qn_usb}}" ]; then | ||
| if ! [ -f {{qn_usb}} ]; then | ||
| dd if=/dev/zero of={{qn_usb}} bs=8M count=1 >/dev/null 2>&1 | ||
| mkfs.vfat {{qn_usb}} >/dev/null 2>&1 | ||
| fi | ||
| usb_cmd=" -drive if=none,id=usbstick,format=raw,file={{qn_usb}} -usb -device usb-ehci,id=ehci -device usb-storage,bus=ehci.0,drive=usbstick " | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #!/bin/sh | ||
|
|
||
| con=hvc0 | ||
| tty -s && con=hvc2 | ||
|
|
||
| img={{#qn_image}}{{qn_image}}{{/qn_image}}{{^qn_image}}infix-x86_64-disk.img{{/qn_image}} | ||
| bios={{#qn_bios}}{{qn_bios}}{{/qn_bios}}{{^qn_bios}}OVMF.fd{{/qn_bios}} | ||
| {{> inc/infix-usb}} | ||
|
|
||
| origimg=$(realpath $img) | ||
| qemu-img create -f qcow2 -o backing_file=$origimg -F qcow2 {{name}}.qcow2 | ||
|
|
||
| truncate -s 0 $imgdir/{{name}}.mactab | ||
| {{#links}} | ||
| echo "{{qn_name}} {{qn_mac}}" >>$imgdir/{{name}}.mactab | ||
| {{/links}} | ||
|
|
||
| exec qemu-system-x86_64 -M pc,accel=kvm:tcg -cpu max \ | ||
| -m {{#qn_mem}}{{qn_mem}}{{/qn_mem}}{{^qn_mem}}256M{{/qn_mem}} \ | ||
| {{> ../qeneth/templates/inc/qemu-links}} | ||
| -fw_cfg name=opt/mactab,file=$imgdir/{{name}}.mactab \ | ||
| -bios $bios \ | ||
| -drive file={{name}}.qcow2,if=virtio,format=qcow2,bus=0,unit=1 \ | ||
| $usb_cmd \ | ||
| {{> ../qeneth/templates/inc/infix-common}} | ||
| {{> ../qeneth/templates/inc/qemu-console}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| #!/bin/sh | ||
|
|
||
| con=hvc0 | ||
| tty -s && con=hvc2 | ||
|
|
||
| img={{#qn_image}}{{qn_image}}{{/qn_image}}{{^qn_image}}infix-x86_64.img{{/qn_image}} | ||
| imgsz=$((($(stat -Lc %s $img) + 1023) >> 10)) | ||
| imgdir=./.$(realpath $img | sed -e s:/:-:g) | ||
|
|
||
| unsquashfs -n -f -d $imgdir $img boot/bzImage >/dev/null | ||
|
|
||
|
|
||
| {{> inc/infix-disk}} | ||
| {{> inc/infix-usb}} | ||
|
|
||
| truncate -s 0 $imgdir/{{name}}.mactab | ||
| {{#links}} | ||
| echo "{{qn_name}} {{qn_mac}}" >>$imgdir/{{name}}.mactab | ||
| {{/links}} | ||
|
|
||
| exec qemu-system-x86_64 -M pc,accel=kvm:tcg -cpu max \ | ||
| -m {{#qn_mem}}{{qn_mem}}{{/qn_mem}}{{^qn_mem}}384M{{/qn_mem}} \ | ||
| -kernel "bzImage" -initrd $img \ | ||
| -append "root=/dev/ram0 ramdisk_size=$imgsz console=$con,115200 $append {{qn_append}}" \ | ||
| -drive file={{name}}.disk,if=virtio,format=raw,bus=0,unit=1 \ | ||
| {{> ../qeneth/templates/inc/qemu-links}} | ||
| -fw_cfg name=opt/mactab,file=$imgdir/{{name}}.mactab \ | ||
| $usb_cmd \ | ||
| {{> ../qeneth/templates/inc/infix-common}} | ||
| {{> ../qeneth/templates/inc/qemu-console}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| #!/bin/sh | ||
|
|
||
| con=hvc0 | ||
| tty -s && con=hvc2 | ||
|
|
||
| img={{#qn_image}}{{qn_image}}{{/qn_image}}{{^qn_image}}infix-x86_64.img{{/qn_image}} | ||
| imgsz=$((($(stat -Lc %s $img) + 1023) >> 10)) | ||
| imgdir=./.$(realpath $img | sed -e s:/:-:g) | ||
|
|
||
| unsquashfs -n -f -d $imgdir $img boot/bzImage >/dev/null | ||
|
|
||
|
|
||
| {{> inc/infix-disk}} | ||
| {{> inc/infix-usb}} | ||
|
|
||
| truncate -s 0 $imgdir/{{name}}.mactab | ||
| {{#links}} | ||
| echo "{{qn_name}} {{qn_mac}}" >>$imgdir/{{name}}.mactab | ||
| {{/links}} | ||
|
|
||
| exec qemu-system-x86_64 -M pc,accel=kvm:tcg -cpu max \ | ||
| -m {{#qn_mem}}{{qn_mem}}{{/qn_mem}}{{^qn_mem}}384M{{/qn_mem}} \ | ||
| -kernel $imgdir/boot/bzImage -initrd $img \ | ||
| -append "root=/dev/ram0 ramdisk_size=$imgsz console=$con,115200 $append {{qn_append}}" \ | ||
| -drive file={{name}}.disk,if=virtio,format=raw,bus=0,unit=1 \ | ||
| {{> inc/qemu-links}} | ||
| -fw_cfg name=opt/mactab,file=$imgdir/{{name}}.mactab \ | ||
| $usb_cmd \ | ||
| {{> inc/infix-common}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.