Before upgrade

#1 as outlined in the test instructions
ubuntu@i-qemu-static:~$ sudo chroot armTest-I echo 1 2 3
2 3

#2 as suggested by Seth with a chroot into an RPI image
$ wget 
https://cdimage.ubuntu.com/releases/20.04.3/release/ubuntu-20.04.3-preinstalled-server-arm64+raspi.img.xz?_ga=2.28921023.260729611.1636356089-1983321591.1618404862
$ mv 
ubuntu-20.04.3-preinstalled-server-arm64+raspi.img.xz\?_ga\=2.28921023.260729611.1636356089-1983321591.1618404862
  ubuntu-20.04.3-preinstalled-server-arm64+raspi.img.xz
$ unxz ubuntu-20.04.3-preinstalled-server-arm64+raspi.img.xz
$ sudo partx -a -v  ubuntu-20.04.3-preinstalled-server-arm64+raspi.img
$ sudo mount /dev/loop7p2 /mnt/rpi
$ sudo chroot /mnt/rpi

Is it simpler or not, doesn't matter.
It is a valid alternative test :-)

ubuntu@i-qemu-static:~$ sudo chroot /mnt/rpi/ echo 1 2 3 
2 3

To make this slightly more interesting I also used it to run RiscV code
with the image from
https://cdimage.ubuntu.com/releases/20.04.3/release/ubuntu-20.04.3-preinstalled-
server-riscv64+unmatched.img.xz

ubuntu@i-qemu-static:~$ sudo chroot /mnt/risc/ echo 1 2 3 
2 3



Oh in case anyone wonders, we can check the target arch, but due to the bug 
need it twice until the bug is fixed
$ sudo chroot /mnt/risc/ dpkg --print-architecture --print-architecture
riscv64
ubuntu@i-qemu-static:~$ sudo chroot /mnt/rpi/ dpkg --print-architecture 
--print-architecture
arm64
ubuntu@i-qemu-static:~$ sudo chroot armTest-I dpkg --print-architecture 
--print-architecture
armhf


----
Update

ubuntu@i-qemu-static:~$ sudo apt install qemu-user-static
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  accountsservice language-selector-common libaccountsservice0 net-tools
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  qemu-user-static
1 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Need to get 12.2 MB of archives.
After this operation, 23.6 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu impish-proposed/universe amd64 
qemu-user-static amd64 1:6.0+dfsg-2expubuntu1.1 [12.2 MB]
Fetched 12.2 MB in 2s (7712 kB/s)           
(Reading database ... 95365 files and directories currently installed.)
Preparing to unpack .../qemu-user-static_1%3a6.0+dfsg-2expubuntu1.1_amd64.deb 
...
Unpacking qemu-user-static (1:6.0+dfsg-2expubuntu1.1) over 
(1:6.0+dfsg-2expubuntu1) ...
Setting up qemu-user-static (1:6.0+dfsg-2expubuntu1.1) ...
Processing triggers for man-db (2.9.4-2) ...
Scanning processes...                                                           
                                                                                
                               
Scanning linux images...                                                        
                                                                                
                               

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

----

ubuntu@i-qemu-static:~$ sudo chroot /mnt/rpi/ echo 1 2 3
1 2 3
ubuntu@i-qemu-static:~$ sudo chroot armTest-I echo 1 2 3
1 2 3
ubuntu@i-qemu-static:~$ sudo chroot /mnt/risc/ echo 1 2 3 
1 2 3

Fixed in all tested environments, setting tags accordingly


** Tags removed: verification-needed verification-needed-impish
** Tags added: verification-done verification-done-impish

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947860

Title:
  qemu-arm-static swallows the program name, and shifts all arguments
  left

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1947860/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to