Fix fake sudo to preserve argument quoting
The fake sudo script used $@ without quotes, which broke commands like: sudo sh -c “dd bs=64K …” The -c argument lost its quoted string, causing dd to silently do nothing and exit 0.
Use exec “$@” to properly preserve argument quoting and propagate the exit code.
Change-Id: I6397cfab40b3196b41214881bbef2ca8161348ff Assisted-By: Claude Opus 4.6 Signed-off-by: Goutham Pacha Ravi gouthampravi@gmail.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
This project contains scripts and configs to create a small bootable Linux image, primarily for the purposes of testing Manila.
It uses buildroot to do nearly all of the hard work.
The built Linux image is optimized for size, and targets the i386 platform under QEMU.
The following extra features are enabled:
== Dependencies needed ==
On Ubuntu:
To build
sudo apt-get -y install curl unzip bc python quilt parted qemu-utils
build-essential gcc-multilib
For test/dev
sudo apt-get -y install bison flex texinfo gettext ncurses-dev sshpass
qt-sdk qemu-kvm genisoimage
On Fedora:
To build
sudo dnf -y install curl unzip bc python quilt parted qemu-img gcc-c++
make glibc-devel.i686
For test/dev
sudo dnf -y install bison flex texinfo gettext ncurses-devel sshpass
qt-devel qemu-kvm genisoimage
== Building the images ==
To build both images run:
./run-buildroot.sh
== Cleaning up ==
To nuke everything and start over:
rm -rf buildroot output* overlay* sudo rm *.qcow2
== Detailed Docs ==
More detailed docs are available: