Commit Graph

475 Commits

Author SHA1 Message Date
Michael Aldridge 5791d18d31 Makefile: add option to set mirror across build 2017-08-20 23:10:15 -05:00
Michael Aldridge a118712911 Create targets to setup distdir 2017-08-20 14:59:43 -07:00
Michael Aldridge eeb2a810ee Remove obsolete build scripts 2017-08-19 00:20:35 -07:00
Michael Aldridge 4288c890a3 Build SBC and Cloud images via Makefile 2017-08-19 00:16:50 -07:00
Michael Aldridge 5ea6dc395c mkimage.sh.in: compress resultant images 2017-08-19 00:14:12 -07:00
Michael Aldridge bc651eb19f Build images via makefile 2017-08-18 21:14:00 -07:00
Michael Aldridge 4e2214218a mkimage.sh.in: fix PLATFORM detection 2017-08-18 21:13:48 -07:00
Michael Aldridge 20ce939c01 Build PLATFORMFS with Makefile 2017-08-16 22:43:06 -07:00
Michael Aldridge d4ba63c5e7 Generate platformfs via makefile 2017-08-14 20:57:51 -07:00
Michael Aldridge 03abfc2115 Build rootfs via makefile 2017-08-14 20:56:57 -07:00
Michael Aldridge 3e5c8d43e7 Fix handling of i686 on an x64 host 2017-08-14 00:59:05 -07:00
Michael Aldridge b53e2e4814 Makefile: remove install target 2017-08-13 17:59:11 -07:00
Michael Aldridge c0424731dd mkimage.sh.in: Use abstracted chroot access 2017-08-13 17:45:22 -07:00
Michael Aldridge 0b638dd785 mkimage.sh.in: Fix typo in cleanup code 2017-08-13 17:44:51 -07:00
Michael Aldridge 6e1d80b78b Factor out architecture map 2017-08-13 17:44:25 -07:00
Michael Aldridge 2724ae0abb mkimage.sh.in: add comments 2017-08-13 01:40:19 -07:00
Michael Aldridge 7a7766cfcb mkimage.sh.in: lib.sh and a generous serving of quotes 2017-08-13 01:02:47 -07:00
Michael Aldridge 119a0ad1b5 Add mkplatformfs.sh.in 2017-08-12 20:06:20 -07:00
Michael Aldridge fa88e042ba Fix native config path bug 2017-08-12 16:42:07 -07:00
Michael Aldridge b531fae80b Factor out tool check to lib.sh.in 2017-08-11 00:56:28 -07:00
Michael Aldridge 990287bbc2 lib.sh.in: add shebang to clear shellcheck error 2017-08-11 00:15:58 -07:00
Michael Aldridge d6975a2793 QEMU interpreter must be registered at absolute path 2017-08-10 23:50:14 -07:00
Michael Aldridge 069d8c48eb Fix password set step 2017-08-10 23:44:10 -07:00
Michael Aldridge 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
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 dbac38c0f7 Revert "mklive.sh.in: add custom scripts to init"
This reverts commit 3c68cc4158.

This commit was not adequately reviewed and introduces unintentional
errors to the mklive system as well as unfavorable directory contents
in every published ISO.
2017-08-07 18:27:07 -07:00
edr 3c68cc4158 mklive.sh.in: add custom scripts to init
The added option -H <hooksdir> allows the user to specify a directory
that contains hook scripts which should be run directly after the live
system's init sequence.
This can be used to customize the system (such as e.g. setting a
different default shell)
2017-08-06 21:10:40 -07:00
Michael Aldridge 414ebf318f Add netboot generator script 2017-08-06 21:03:55 -07:00
Michael Aldridge 76ea7500b2 Add an automatic install option to the initramfs. 2017-08-06 21:02:55 -07:00
Michael Aldridge 04bf2e873b Support building GCP ready images 2017-08-03 21:22:48 -07:00
masato9000 a4b3dd36c9 Improve support for 32-bit EFI firmware in ISOs and installer
mklive:
- include support for booting both 32- and 64-bit UEFI firmware with
  32- and 64-bit images.
- require grub packages for both firmware bitness types
  (build-x86-images)

Installer:
- include support for installing both 32- and 64-bit UEFI grub loaders
- detect UEFI platform (firmware) bitness at install time

Closes: #102 [via git-merge-pr]
2017-08-02 22:25:09 -07:00
M. Dietrich fe57bb4b06 set umask 022 2017-08-02 16:31:15 -07:00
M. Dietrich fbe5b8dccb fix error_out (line/errno handling)
Closes: #84 [via git-merge-pr]
2017-06-23 13:05:11 -07:00
Michael Aldridge 7428a52080 Support really long WPA2 keys, resolves #79 2017-06-23 12:47:34 -07:00
Michael Aldridge 79adf63842 Correctly detect musl host architecture
This resolves #106
2017-06-23 12:46:49 -07:00
Toyam Cox 03b894370f Merge pull request #94 from metadave/dp_fix_net_message
fix network error message
2017-06-23 15:42:06 -04:00
Toyam Cox b23f918d6f Merge pull request #95 from metadave/dp_check_for_root
bail out if not root
2017-06-23 15:41:29 -04:00
Enno Boland a0cf80b5ce Merge pull request #112 from gquittet/master
Added NVMe SSD compatibility
2017-06-11 11:31:32 +02:00
Guillaume Quittet a7bb148a28 Added NVMe SSD compatibility
I've added the NVMe SSD disks compatibility because the installer doesn't detect them.
2017-06-11 11:30:20 +02:00
Toyam Cox dc9c842f9c build-arm-images.sh.in: fix typo 2017-02-28 12:53:12 -05:00
Leah Neukirchen 2df9a27e8d build-arm-images: add odroid-c2 and rpi3. 2017-02-20 17:17:34 +01:00
Dave Parfitt 737c00b262 bail out if not root 2017-01-23 09:50:20 -05:00
Dave Parfitt 99127fe281 fix network error message 2017-01-23 09:47:38 -05: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
Christopher Brannon 9800862806 mkimage.sh: fix sfdisk usage for multiple arches.
In the case where we have two partitions, boot and root, the
root partition needs to start at sector (2048 + bootfs_size_in_sectors),
not at $BOOT_FSSIZE.
Using $BOOT_FSSIZE as the start tells sfdisk to try to start the
/ partition in the middle of /boot, which it refuses to do.
Leave start blank, and sfdisk uses the first unallocated sector as
the start of /, which happens to be sector 2048 + bootfs_size_in_sectors.

I suspect this fixes #81.
2016-11-30 13:32:00 +01:00
Christian Neukirchen 58f6a3e7c0 mkimage.sh.in: odroid-c2: u-boot doesn't understand new ext4 features, disable. 2016-09-24 17:23:31 +02:00