Commit Graph

461 Commits

Author SHA1 Message Date
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
Christian Neukirchen 8af0cf2d15 mkrootfs.sh.in: fix for odroid-c2. 2016-09-24 17:21:43 +02:00
Jürgen Buchmüller 758deda76c Merge pull request #83 from pullmoll/installer
installer.sh.in: fixes and improvements
2016-09-09 21:57:11 +02:00
Juergen Buchmueller b820b28d66 installer.sh.in: fixes and improvements
+ Add INFOBOX() because dialog --infobox is incompatible with --keep-tite on xterm
+ Use clear after INFOBOX() to not leave irritating info on the screen
+ Make the live system copy process use a --progressbox
+ Use a tar pipe to copy from live ISO to target file system
2016-09-05 09:31:25 +02:00
Toyam Cox 50148f369f installer.sh.in: change irc channel to be correct 2016-08-24 19:47:38 -04:00
Juan RP 8a22f2c03d mkimage: typo fix (close #80). 2016-08-11 08:19:31 +02:00
Juan RP fdb41f88e8 mkimage: active first partition (fat32) for bbb and others.
I activated the second partition by accident when the code was changed
to use sfdisk. Found and fixed by @pullmoll.

Close #80
2016-08-10 07:40:35 +02:00
Jürgen Buchmüller de4c52a4a6 installer.sh.in: add ISO-639 and ISO-3166 tables (#71)
The locale selection now has user friendly names for language
and country. This time without bashisms.
2016-05-12 08:13:56 +02:00
Christian Neukirchen b2415b015d mkimage.sh.in: add odroid-c2. 2016-05-06 14:41:04 +02:00
Christian Neukirchen d1e633fc12 mkrootfs.sh.in: add odroid-c2. 2016-05-04 19:24:46 +02:00
Michael Aldridge b7e8732b04 Add *.iso to .gitignore (#69) 2016-05-01 06:12:44 +02:00
Juan RP d6f949d640 mkimage: get rid of parted completely (missed this in previous). 2016-04-29 14:17:49 +02:00
Juan RP 7e21c2f151 dracut/adduser.sh: remove double whitespace from sudoers.
This lets the installer remove the anon rule from etc/sudoers.
2016-04-29 09:24:01 +02:00
Juan RP 9d66fae1c0 mkrootfs: ignore rmdir error output. 2016-04-29 09:23:38 +02:00
Juan RP 3debfb21de mkimage: ci20 uboot does not need /boot/vmlinux.img; looks for uImage. 2016-04-27 12:48:46 +02:00