Michael Aldridge
10568660ac
Clean up chroot/QEMU logic
...
The logic that sets up the QEMU static binary to permit running alien
binary formats is quite complex. This commit cleans up a lot of the
logic around this and adds a huge number of comments to try and
clarify why things happen when they do. Ultimately this commit
provides a lot of the ground work to factor out all of the chroot
setup into a seperate shell file that can be sourced by other mklive
tasks that need to operate inside of a chroot with a possibly alien
executable format.
2017-08-10 00:01:09 -07:00
Michael Aldridge
a7ba42f7ec
Simplify mkrootfs.sh.in
...
Previously this script could produce rootfs tarballs suitable for a
few different systems. This worked but meant that several different
scripts were then building root filesystems instead of just using ones
produced by this script. This commit cleans up the script to produce
just a root filesystem. Note that this system is not bootable, that
still needs to be done by another script which processes platform
specific operations. This script just produces a root filesystem for
every architecture that XBPS understands.
2017-08-09 17:28:10 -07:00
Michael Aldridge
1547ff40e6
mkrootfs.sh.in: generous helping of quotes
2017-08-08 18:47:23 -07:00
Michael Aldridge
039360118b
Consistently use ROOTFS to refer to the system being built
2017-08-07 19:31:31 -07:00
Michael Aldridge
04bf2e873b
Support building GCP ready images
2017-08-03 21:22:48 -07:00
Leah Neukirchen
57c6107be3
mkrootfs.sh.in/mkimage.sh.in: add rpi3.
2017-01-14 18:41:30 +01:00
Chris Brannon
4317c1a4f6
Preserve Linux capabilities when running tar, and misc fixes for mkrootfs. ( #92 )
...
* Preserve Linux capabilities in various tar invocations.
Otherwise, ping as non-root will not work when using a Void image.
Don't try to umount pseudofilesystems when $rootfs is undefined.
On mktemp failure, die in the script itself, not the $( ... ) subshell.
And remove the second FATAL: from the error message.
2016-12-10 12:30:13 +01:00
Christian Neukirchen
8af0cf2d15
mkrootfs.sh.in: fix for odroid-c2.
2016-09-24 17:21:43 +02:00
Christian Neukirchen
d1e633fc12
mkrootfs.sh.in: add odroid-c2.
2016-05-04 19:24:46 +02:00
Juan RP
9d66fae1c0
mkrootfs: ignore rmdir error output.
2016-04-29 09:23:38 +02:00
Juan RP
8b06a299c9
mkrootfs: added ci20 platform support (MIPS CI20 Creator).
2016-04-26 11:00:14 +02:00
Juan RP
06f8beb628
*rootfs: fix remaining x86 rootfs issues.
2016-04-20 16:19:55 +02:00
Juan RP
a15f8c0300
mkrootfs: generate x86 tarballs correctly, requested by scaleway.
2016-04-20 14:36:57 +02:00
Rui Abreu Ferreira
465166a80f
mkrootfs: Added -k to run post hook
...
New flag -k <cmd>. "<cmd> <path>" is executed after the rootfs
is created, <path> points to the new rootfs.
2016-01-18 15:18:30 +00:00
Andrea Brancaleoni
8a42aecd3f
mkrootfs: add dockstar support
2015-07-18 16:44:49 +02:00
Juan RP
539ed0703a
mkrootfs: get rid of pixz; fix rpi target arch.
2015-06-12 10:28:40 +02:00
Juan RP
1b010f1a4c
mkrootfs: set cachedir to $PWD/xbps-cachedir-<arch>; misc tweaks for musl.
2015-06-12 10:09:48 +02:00
Juan RP
9261876718
mkrootfs: update for musl support.
2015-06-11 11:36:14 +02:00
Duncaen
429170afbd
mkrootfs: fix rpi2 target
2015-06-07 22:36:36 +02:00
Juan RP
42b599fa97
mkrootfs: update for xbps-0.45.
2015-06-07 12:31:30 +02:00
Juan RP
91c7d09305
mkrootfs: fix previous.
2015-05-26 11:20:30 +02:00
Juan RP
b77a40785e
mkrootfs: accept *-musl for any platform.
2015-05-26 11:19:39 +02:00
Juan RP
41fbde8a5b
mk{image,rootfs}: accept musl targets and fix image creation with two partitions.
2015-05-26 11:00:52 +02:00
Juan RP
3845a5b429
mkrootfs: add cubietruck platform.
2015-05-22 09:33:32 +02:00
Juan RP
fc31e013a3
mkrootfs: fix -r order.
2015-05-20 19:18:05 +02:00
Enno Boland
8b238fad3f
add platform support for USB armory
2015-04-28 17:30:16 +02:00
Juan RP
c332eae781
mkrootfs: die if $QEMU_BIN is not in PATH.
2015-02-12 09:14:22 +01:00
Juan RP
5684607fce
mkrootfs: generate rpi2 tarballs with a proper name.
2015-02-06 14:00:15 +01:00
Juan RP
6a68e5c875
mkrootfs: override PLATFORM for rpi; we do use the same platform pkg.
2015-02-06 12:16:14 +01:00
Juan RP
e52f493f15
mk{image,rootfs}: add support for the rpi2 platform (armv7).
2015-02-06 11:29:49 +01:00
Christian Neukirchen
0b9c6f0160
mkrootfs: support i686/x86_64.
2015-02-01 09:23:30 +01:00
Christian Neukirchen
5331b55e39
mkrootfs: use parallel xz.
2015-02-01 09:23:30 +01:00
Juan RP
c2a95e625f
mkrootfs: add 'bananapi' platform.
2015-01-19 15:07:53 +01:00
Juan RP
3818e6d425
mk{image,rootfs}: misc tweaks for beaglebone.
2014-12-05 11:06:39 +01:00
Juan RP
b6ca6f8027
mkrootfs: put /boot/MLO at the head on beaglebone.
...
This file must be in the first sectors of the /boot FAT partition on the image.
2014-12-05 07:06:39 +01:00
Juan RP
4aaaa89d1c
mkrootfs: mount binfmt_misc and use pixz if available.
2014-12-05 06:22:16 +01:00
Juan RP
1c603437d3
mk{image,rootfs}: add beaglebone platform support.
2014-12-05 05:46:31 +01:00
Juan RP
194c1cdd89
mkrootfs: update for base-system as runit.
2014-07-29 08:33:04 +02:00
Juan RP
f2e9e4f27a
mkrootfs: use built-in void pubkey; assign default void repo if -r unset.
2014-06-25 08:23:37 +02:00
Juan RP
1fcbe4e2e9
mkrootfs: added c option correctly.
2014-06-01 12:34:08 +02:00
Juan RP
e056d3944c
mkrootfs: added -b, -c and -r options to set system pkg, cachedir and repos respectively.
2014-06-01 12:29:55 +02:00
Juan RP
531d38dc73
mkrootfs: make platform argument mandatory, install <platform>-base pkg automatically.
2014-01-28 16:35:45 +01:00
Juan RP
d728ef5f4a
mkrootfs: accept -p cubieboard.
2014-01-26 12:12:30 +01:00
root
0621eebf86
Merge branch 'master' of https://github.com/voidlinux/void-mklive
2014-01-22 11:01:26 +01:00
Juan RP
eb14a02029
mkrootfs: fix xbps-query -R PKGBASE
2014-01-22 11:06:05 +01:00
Juan RP
e5df5f03d1
mkrootfs: typofix in previous.
2014-01-22 10:43:28 +01:00
Gottox
ea37f5fa4e
Merge branch 'master' of https://github.com/voidlinux/void-mklive
2014-01-22 10:42:02 +01:00
Gottox
2d29c1aa7c
typo fix
2014-01-22 10:41:00 +01:00
Juan RP
89fd4983d5
mkrootfs: replace -R with -C to specify xbps.conf.
2014-01-22 10:36:24 +01:00
Juan RP
adc326d0d4
mkrootfs: remove std{err,out} redirs to see cmd output.
2014-01-22 10:31:28 +01:00