This is Sabotage, an experimental distribution based on musl libc and busybox.
Currently Sabotage supports i386, x86_64, MIPS, PowerPC32 and ARM(v4t+). ARM hardfloat (hf) is supported via crosscompilation of stage1, since it requires a recent GCC which we can't easily bootstrap in stage0 due to library dependencies of GCC introduced with 4.3.
The preferred way to build Sabotage is using a native Linux environment for the desired architecture. It is now also possible to cross-compile large parts of it. As cross-compiling is hairy and support for it is quite new, expect breakage. Native builds are well tested and considered stable.
- ~4G free disk space.
- A Linux 3.8+ host kernel with USER_NS support, for entering native chroots without root.
- A Linux 2.6+ host kernel can be used, but requires root access.
gcc4.x tool chain.
git, to check out the repository.
xzare needed to run the build script.
- Lots of time and a fair bit of Linux knowledge.
musl-crossfor your target arch.
butchcompiled and installed for the build host in $PATH.
pkgconfsymlinked as pkg-config in $PATH, before other pkg-config versions.
- Packages may have a
deps.hostsection listing further packages required on the host.
The only tested cross-compile setup is a Sabotage host that has the same packages installed as the ones you wish to compile.
This system has built natively on Debian 6 & 7, Fedora 18 & 21, Ubuntu 14.04, openSUSE 13.2, Alpine 3.1.2 and Void Linux.
You can bootstrap your own build from the scripts at:
Download ready-to-boot QEMU/VirtualBox disk images that you may also extract the rootfs from:
- DE : http://ftp.barfooze.de/pub/sabotage/
- GR : http://foss.aueb.gr/mirrors/linux/sabotage/
- UK : http://dl.2f30.org/mirrors/sabotage/
- FR : http://mirrors.2f30.org/sabotage/
The DE mirror is the master from which the other mirrors are periodically synced.
SHA512 checksums for releases get posted on the mailing lists, archived here:
READ THE COOKBOOK FIRST BEFORE POSTING.
Native Build Instructions:
DO NOT RUN SCRIPTS YOU HAVE NOT READ.
$ cp KEEP/config.stage0 config $ vi config
You may usually ignore the other values.
Both the config file and the COOKBOOK cover the meaning of these variables.
SUPER to use the following
./enter-chroot script without root.
NOTE: It is possible to build an i386 Sabotage from within an existing 32-bit
chroot on a 64-bit system.
enter-chroot script automatically handles this scenario.
$ ./build-stage0 # ~2min on an AMD FX 8core, 75min on ARM Cortex A8 800Mhz $ ./enter-chroot $ butch install stage1 # ... longer yet.
Older pre-3.8 Linux systems will not support the rootless chroot approach used
SUPER and run
./enter-chroot as root if you encounter an issue.
Once completed, you may install optional packages:
$ butch install core # installs a sane subset for a developer base system $ butch install xorg # install everything needed for xfbdev $ butch install pkg # things such as file, git, gdb ... $ butch install world # almost everything
You may list available packages by using
If you wish to build the default kernel:
$ butch install kernel
butch and look at the usage information for further options.
butch uses build templates that allow for a high level of customization.
KEEP/butch_template_configure_cached.txt is the base template used by Sabotage.
It provides a tuned
config.cache for faster configure runs.
It also installs packages into
/opt, creates file lists, etc.
$ cp KEEP/config.cross . $ vi config.cross # set your vars $ A=microblaze CONFIG=./config.cross utils/setup-rootfs.sh # initialize rootfs $ A=microblaze CONFIG=./config.cross butch install nano # start building stuff
Much like a native build, a config file is copied and edited.
utils/setup-rootfs.sh is run instead of
./build-stage0 to construct the
Finally, we use
butch to start cross-compiling and installing packages into it.
When finished compiling, exit the chroot and either:
- Use the rootfs directly, by copying it to some disk.
utils/run-emulator.shto boot the system in QEMU. Running in QEMU has poor HDD performance, as the FS is mounted via 9P protocol. It's not recommended for building packages, but it's practical for testing.
utils/write-hd-image.shto create an image file. The image file boots in QEMU. To convert it into VirtualBox format use
RUNNING SABOTAGE FOR THE FIRST TIME
The default root password is "sabotage".
Start the sshd service using
sv u sshd, which will create keys on first use.
To make the service autostart on boot, remove
/etc/rc.local for other things to autostart, such as network
configuration, DHCP, console keymapping...
If you have X installed, edit the example
/bin/X for the correct evdev
settings, then run
/etc/xinitrc for X11 keyboard configuration.
NOTES TO CONTRIBUTORS
Please use unified
diff format (
diff -u) for patches.
It is necessary that you create
git branches for your work.
This allows your changes to be checked out and rebased as needed, without merge
Do not commit more than one change/package in a single commit. Use a meaningful commit message that mentions the package name. Please follow the style and conventions of your fellow contributors.
When creating packages, try starting from the autoconf template:
$ cp KEEP/pkg_skel/autoconf pkg/my_new_pkg
There are other convenient templates located in
KEEP/pkg_skel/ as well.
$ utils/dlinfo.sh http://126.96.36.199/my_new_pkg.tar.xz
utils/dlinfo.sh will return the file stats and sha512sum for easy copying
and pasting into your new package.
Package Sources and Philosophy
Sabotage is designed with limited internet availability in mind. After downloading packages in advance, when you have internet, you may build later offline at your leisure.
Space considerations are a top issue, both bandwidth and HD image size. Sabotage ISOs and images ship with all tarballs to fulfill the GPL. ALWAYS USE a TAR.XZ (preferred) or TAR.BZ2 download URL.
Please do not use HTTPS or FTP mirrors. Busybox wget does not support HTTPS. FTP is a broken, ancient protocol.
Downloads from git or other source repositories are not desired. This would add an internet connection as a build-time dependency.
Sabotage originally was a distribution curated by chris2, based around shell scripts and Plan 9's mk. This was possible through the help and inspiration of dalias, niklata, garbeam, pikhq, xmw, gaf and Arch Linux.
There is a mailing list: firstname.lastname@example.org
Email email@example.com and follow its instructions to subscribe.
Archives available: http://openwall.com/lists/sabotage/
You may also /join #sabotage or #musl on irc.freenode.net for real time help.
READ THE COOKBOOK FIRST BEFORE POSTING.
Bitcoins are welcome: