Commit Graph

48 Commits

Author SHA1 Message Date
Jonas 'Sortie' Termansen f744e80b88 Fix memory leak in mkinitrd(1) AddRulesFromFile error path. 2018-08-06 23:59:35 +02:00
Jonas 'Sortie' Termansen 723f8e964c Fix date format in manual pages. 2017-07-02 22:07:39 +02:00
Jonas 'Sortie' Termansen ceff78b6b6 Add initrdfs(1) extraction support. 2017-05-19 23:40:06 +02:00
Nicholas De Nova d217621649 Correct manpage spacing per roff(7) convention.
roff(7) dictates that "Each sentence should terminate at the end of an
input line." Instead of doing this, Sortix manpages (incorrectly) used
double-spaces to separate sentences.

Additionally, fix a few small typos.
2017-02-16 14:42:28 -06:00
Jonas 'Sortie' Termansen 50669b1556 Fix mkinitrd(8) documentation typos. 2016-10-09 19:18:23 +02:00
Jonas 'Sortie' Termansen 848eaaf593 Port build utilities to musl. 2016-09-29 00:01:40 +02:00
Jonas 'Sortie' Termansen 63146072a4 Fix getline(3) and getdelim(3) usage. 2016-05-15 19:32:04 +02:00
Jonas 'Sortie' Termansen e69565fd15 Remove compatibility with Sortix 0.9. 2016-05-15 01:31:48 +02:00
Jonas 'Sortie' Termansen 2b72262b4f Relicense Sortix to the ISC license.
I hereby relicense all my work on Sortix under the ISC license as below.

All Sortix contributions by other people are already under this license,
are not substantial enough to be copyrightable, or have been removed.

All imported code from other projects is compatible with this license.

All GPL licensed code from other projects had previously been removed.

Copyright 2011-2016 Jonas 'Sortie' Termansen and contributors.

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2016-03-05 22:21:50 +01:00
Jonas 'Sortie' Termansen 9ea3edf36f Convert mkinitrd to C. 2016-03-03 23:02:24 +01:00
Jonas 'Sortie' Termansen f633942124 Replace crc32 code with libz implementation. 2016-03-01 00:40:28 +01:00
Jonas 'Sortie' Termansen 2228dee514 Fix mkinitrd(8) manifest support. 2016-02-07 22:20:36 +01:00
Jonas 'Sortie' Termansen 507d7d73ab Add --manifest option to mkinitrd(8). 2016-02-07 14:58:38 +01:00
Jonas 'Sortie' Termansen 02d5dddc5b Fix minor mistakes in new manual pages. 2016-02-04 02:08:12 +01:00
Jonas 'Sortie' Termansen 1ca8ef0a48 Document mkinitrd(8) and initrdfs(8). 2016-02-04 01:35:08 +01:00
Jonas 'Sortie' Termansen 67af95c7ee Update command line parsing to current coding conventions. 2015-12-12 19:28:07 +01:00
Jonas 'Sortie' Termansen ba4fa25341 Fix mkinitrd creating unaligned structs. 2015-12-12 16:53:42 +01:00
Jonas 'Sortie' Termansen b2aae6094f Add mkinitrd support for multiple roots. 2015-10-28 16:28:17 +01:00
Jonas 'Sortie' Termansen 3191e18966 Cache only mkinitrd nodes with multiple hardlinks. 2015-10-28 16:28:17 +01:00
Jonas 'Sortie' Termansen 4ad93ec618 Fix mkinitrd(8) default rule boolean parsing. 2015-10-08 00:06:58 +02:00
Jonas 'Sortie' Termansen 158716f96a Fix ctype invocations with wrong domain. 2015-08-11 15:57:56 +02:00
Jonas 'Sortie' Termansen a306193824 Fix mkinitrd default uid and gid not being root. 2015-08-01 14:02:23 +02:00
Jonas 'Sortie' Termansen 577323b950 Update the ioleast family to current coding conventions. 2015-02-08 22:58:32 +01:00
Jonas 'Sortie' Termansen 69159d275f Fix mkinitrd and initrdfs endian issues. 2015-01-19 18:03:13 +01:00
Jonas 'Sortie' Termansen 2586685061 Ongoing build system maintainance. 2014-12-02 17:09:28 +01:00
Jonas 'Sortie' Termansen e7844535e0 Add --format option to mkinitrd(1). 2014-11-24 22:22:38 +01:00
Jonas 'Sortie' Termansen 5e124c9df0 Update mkinitrd to current coding conventions. 2014-11-24 21:32:25 +01:00
Jonas 'Sortie' Termansen 87be32b948 Remove obsolete uninstall Makefile target from projects. 2014-11-24 21:32:24 +01:00
Jonas 'Sortie' Termansen 9e6148f6ff Refactor default compiler options logic. 2014-11-24 17:10:50 +01:00
Jonas 'Sortie' Termansen bf9e9d0b25 Fix mkinitrd not maintaining correct hard link count. 2014-05-16 14:48:28 +02:00
Jonas 'Sortie' Termansen 98a87fa1e5 Rename Sortix kernel directory to kernel. 2014-03-01 14:37:39 +01:00
Jonas 'Sortie' Termansen a212ec0ee3 Split libc/unistd/ioleast.cpp into multiple files. 2013-12-17 14:30:43 +01:00
Jonas 'Sortie' Termansen 0d4a25396b Move unistd.h functions into their own directory. 2013-12-17 14:30:38 +01:00
Jonas 'Sortie' Termansen 472155173d Adopt struct timespec as the kernel time format.
Note: Incompatible ABI change.
2013-12-17 14:30:30 +01:00
Jonas 'Sortie' Termansen 90036ca6a8 Update copyright headers of old files to the current format. 2013-12-17 14:30:23 +01:00
Jonas 'Sortie' Termansen eb5be61d20 Fix trailing blank lines. 2013-12-17 14:30:23 +01:00
Jonas 'Sortie' Termansen 7eb9e3c33f Refactor Sortix build system and de-autoconf mxmpp. 2013-12-17 14:30:22 +01:00
Jonas 'Sortie' Termansen 25a988442e Support filtering paths in the mkinitrd program.
This will allow initrds to omit certain files, such as other initrds,
irrelevant files, iles for another platform, and so on. This will be useful
when initrd contain entire system roots.
2013-09-24 17:09:48 +02:00
Jonas 'Sortie' Termansen 2bfaa81f76 Use same inode for hardlinks in mkinitrd.
This saves memory as the contents of the inode doesn't need to be duplicated
needlessly in the final image.
2013-09-24 17:09:48 +02:00
Jonas 'Sortie' Termansen 39a8433b23 Fix mkinitrd compile warnings. 2013-07-08 15:47:27 +02:00
Jonas 'Sortie' Termansen be4858f82c Rename libmaxsi to sortix libc. 2012-12-14 14:13:36 +01:00
Jonas 'Sortie' Termansen c39473157a Implemented a new initrd format with better inode support.
This enables useful features such as directories, CRC32 checksums, and other
useful features. The initrdfs in the kernel is now hooked up against the new
API, although the kernel's current limited FS support is a problem for now.
To work around that, directories are not supported at runtime, although the
internal API understands them wonderfully. This will be fixed when the
kernel gets a real VFS.
2012-07-02 17:40:52 +02:00
Jonas 'Sortie' Termansen db79994e64 Refactored all the sortix headers into a include directory.
Also got rid of trailing white space. That corrupted .git/.

Big ass-commit because of recovered .git directory.
2012-03-22 00:52:29 +01:00
Jonas 'Sortie' Termansen 889646d033 Removed excess space. 2011-12-04 21:31:53 +01:00
Jonas 'Sortie' Termansen b0884584a1 Added a very simple checksum field to the init ramdisk.
This uncovers a bug where the bootloader may corrupt the initrd on x64.

This is probably related to our kernel64 hack..
2011-12-01 21:44:11 +01:00
Jonas 'Sortie' Termansen 2b032b0414 Initial signal support. Please squash improvements into this commit. 2011-11-23 00:19:09 +01:00
Jonas 'Sortie' Termansen 011addf46c The initrd now uses the mkinitrd format and the kernel now loads it. 2011-08-28 12:38:01 +02:00
Jonas 'Sortie' Termansen fa7834b5d6 Added a mkinitrd program that creates initrds for Sortix. 2011-08-27 16:57:03 +02:00