Commit Graph

69 Commits

Author SHA1 Message Date
b4218de9b2 make -h option work for mkrootfs and mkplatformfs
Closes: #133 [via git-merge-pr]
2017-09-24 15:58:11 -07:00
41676808b3 mkrootfs.sh.in remove redundant variable 2017-08-31 20:07:51 -07:00
9debeafbf6 mkrootfs.sh.in: support arbitrary filenames 2017-08-29 22:42:40 -07:00
4f514f5212 Explicitly set number of xz compressor threads 2017-08-21 00:04:17 -07:00
3e5c8d43e7 Fix handling of i686 on an x64 host 2017-08-14 00:59:05 -07:00
c0424731dd mkimage.sh.in: Use abstracted chroot access 2017-08-13 17:45:22 -07:00
119a0ad1b5 Add mkplatformfs.sh.in 2017-08-12 20:06:20 -07:00
fa88e042ba Fix native config path bug 2017-08-12 16:42:07 -07:00
b531fae80b Factor out tool check to lib.sh.in 2017-08-11 00:56:28 -07:00
069d8c48eb Fix password set step 2017-08-10 23:44:10 -07:00
34bffe1e2a Factor out chroot helpers to lib.sh
This commit removes all of the chroot refactor to a seperate file.
This paves the way to use these functions in all other scripts.
2017-08-10 23:28:26 -07:00
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
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
1547ff40e6 mkrootfs.sh.in: generous helping of quotes 2017-08-08 18:47:23 -07:00
039360118b Consistently use ROOTFS to refer to the system being built 2017-08-07 19:31:31 -07:00
04bf2e873b Support building GCP ready images 2017-08-03 21:22:48 -07:00
57c6107be3 mkrootfs.sh.in/mkimage.sh.in: add rpi3. 2017-01-14 18:41:30 +01:00
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
8af0cf2d15 mkrootfs.sh.in: fix for odroid-c2. 2016-09-24 17:21:43 +02:00
d1e633fc12 mkrootfs.sh.in: add odroid-c2. 2016-05-04 19:24:46 +02:00
9d66fae1c0 mkrootfs: ignore rmdir error output. 2016-04-29 09:23:38 +02:00
8b06a299c9 mkrootfs: added ci20 platform support (MIPS CI20 Creator). 2016-04-26 11:00:14 +02:00
06f8beb628 *rootfs: fix remaining x86 rootfs issues. 2016-04-20 16:19:55 +02:00
a15f8c0300 mkrootfs: generate x86 tarballs correctly, requested by scaleway. 2016-04-20 14:36:57 +02:00
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
8a42aecd3f mkrootfs: add dockstar support 2015-07-18 16:44:49 +02:00
539ed0703a mkrootfs: get rid of pixz; fix rpi target arch. 2015-06-12 10:28:40 +02:00
1b010f1a4c mkrootfs: set cachedir to $PWD/xbps-cachedir-<arch>; misc tweaks for musl. 2015-06-12 10:09:48 +02:00
9261876718 mkrootfs: update for musl support. 2015-06-11 11:36:14 +02:00
429170afbd mkrootfs: fix rpi2 target 2015-06-07 22:36:36 +02:00
42b599fa97 mkrootfs: update for xbps-0.45. 2015-06-07 12:31:30 +02:00
91c7d09305 mkrootfs: fix previous. 2015-05-26 11:20:30 +02:00
b77a40785e mkrootfs: accept *-musl for any platform. 2015-05-26 11:19:39 +02:00
41fbde8a5b mk{image,rootfs}: accept musl targets and fix image creation with two partitions. 2015-05-26 11:00:52 +02:00
3845a5b429 mkrootfs: add cubietruck platform. 2015-05-22 09:33:32 +02:00
fc31e013a3 mkrootfs: fix -r order. 2015-05-20 19:18:05 +02:00
8b238fad3f add platform support for USB armory 2015-04-28 17:30:16 +02:00
c332eae781 mkrootfs: die if $QEMU_BIN is not in PATH. 2015-02-12 09:14:22 +01:00
5684607fce mkrootfs: generate rpi2 tarballs with a proper name. 2015-02-06 14:00:15 +01:00
6a68e5c875 mkrootfs: override PLATFORM for rpi; we do use the same platform pkg. 2015-02-06 12:16:14 +01:00
e52f493f15 mk{image,rootfs}: add support for the rpi2 platform (armv7). 2015-02-06 11:29:49 +01:00
0b9c6f0160 mkrootfs: support i686/x86_64. 2015-02-01 09:23:30 +01:00
5331b55e39 mkrootfs: use parallel xz. 2015-02-01 09:23:30 +01:00
c2a95e625f mkrootfs: add 'bananapi' platform. 2015-01-19 15:07:53 +01:00
3818e6d425 mk{image,rootfs}: misc tweaks for beaglebone. 2014-12-05 11:06:39 +01:00
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
4aaaa89d1c mkrootfs: mount binfmt_misc and use pixz if available. 2014-12-05 06:22:16 +01:00
1c603437d3 mk{image,rootfs}: add beaglebone platform support. 2014-12-05 05:46:31 +01:00
194c1cdd89 mkrootfs: update for base-system as runit. 2014-07-29 08:33:04 +02:00
f2e9e4f27a mkrootfs: use built-in void pubkey; assign default void repo if -r unset. 2014-06-25 08:23:37 +02:00