diff mbox series

scripts/qemustart: use squashfs instead of ext4

Message ID 20201229231317.2780833-1-mail@aparcar.org
State Accepted
Delegated to: Paul Spooren
Headers show
Series scripts/qemustart: use squashfs instead of ext4 | expand

Commit Message

Paul Spooren Dec. 29, 2020, 11:13 p.m. UTC
The qemustart script currently picks the ext4 filesystem rather than
squashfs, while the latter is default for nearly all OpenWrt targets.

Change the default behaviour of qemustart to be in line with the rest.

Signed-off-by: Paul Spooren <mail@aparcar.org>
---
 scripts/qemustart | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Philip Prindeville Jan. 2, 2021, 2:58 a.m. UTC | #1
Reviewed-by: Philip Prindeville <philipp@redfish-solutions.com>



> On Dec 29, 2020, at 4:13 PM, Paul Spooren <mail@aparcar.org> wrote:
> 
> The qemustart script currently picks the ext4 filesystem rather than
> squashfs, while the latter is default for nearly all OpenWrt targets.
> 
> Change the default behaviour of qemustart to be in line with the rest.
> 
> Signed-off-by: Paul Spooren <mail@aparcar.org>
> ---
> scripts/qemustart | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/qemustart b/scripts/qemustart
> index 7a2878ea70..f0ddefb839 100755
> --- a/scripts/qemustart
> +++ b/scripts/qemustart
> @@ -257,7 +257,7 @@ start_qemu_x86() {
> 	local mach="${o_mach:-pc}"
> 
> 	[ -n "$rootfs" ] || {
> -		rootfs="$o_bindir/openwrt-$o_target-${o_subtarget%-*}-generic-ext4-combined.img"
> +		rootfs="$o_bindir/openwrt-$o_target-${o_subtarget%-*}-generic-squashfs-combined.img"
> 		if [ ! -f "$rootfs" -a -s "$rootfs.gz" ]; then
> 			gunzip "$rootfs.gz"
> 		fi
> -- 
> 2.29.2
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Philip Prindeville Jan. 2, 2021, 2:59 a.m. UTC | #2
Reviewed-by: Philip Prindeville <philipp@redfish-solutions.com>



> On Dec 29, 2020, at 4:13 PM, Paul Spooren <mail@aparcar.org> wrote:
> 
> The qemustart script currently picks the ext4 filesystem rather than
> squashfs, while the latter is default for nearly all OpenWrt targets.
> 
> Change the default behaviour of qemustart to be in line with the rest.
> 
> Signed-off-by: Paul Spooren <mail@aparcar.org>
> ---
> scripts/qemustart | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/qemustart b/scripts/qemustart
> index 7a2878ea70..f0ddefb839 100755
> --- a/scripts/qemustart
> +++ b/scripts/qemustart
> @@ -257,7 +257,7 @@ start_qemu_x86() {
> 	local mach="${o_mach:-pc}"
> 
> 	[ -n "$rootfs" ] || {
> -		rootfs="$o_bindir/openwrt-$o_target-${o_subtarget%-*}-generic-ext4-combined.img"
> +		rootfs="$o_bindir/openwrt-$o_target-${o_subtarget%-*}-generic-squashfs-combined.img"
> 		if [ ! -f "$rootfs" -a -s "$rootfs.gz" ]; then
> 			gunzip "$rootfs.gz"
> 		fi
> -- 
> 2.29.2
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
diff mbox series

Patch

diff --git a/scripts/qemustart b/scripts/qemustart
index 7a2878ea70..f0ddefb839 100755
--- a/scripts/qemustart
+++ b/scripts/qemustart
@@ -257,7 +257,7 @@  start_qemu_x86() {
 	local mach="${o_mach:-pc}"
 
 	[ -n "$rootfs" ] || {
-		rootfs="$o_bindir/openwrt-$o_target-${o_subtarget%-*}-generic-ext4-combined.img"
+		rootfs="$o_bindir/openwrt-$o_target-${o_subtarget%-*}-generic-squashfs-combined.img"
 		if [ ! -f "$rootfs" -a -s "$rootfs.gz" ]; then
 			gunzip "$rootfs.gz"
 		fi