]>
git.pld-linux.org Git - projects/geninitrd.git/log
Arkadiusz Miśkiewicz [Sat, 2 Sep 2023 22:16:02 +0000 (00:16 +0200)]
Handle deleted device files for swap.
Handle swaps like:
$ cat /proc/swaps
Filename Type Size Used Priority
/dev/sda2\040(deleted) partition
4194300 571016 -2
Jan Palus [Tue, 20 Jun 2023 12:37:37 +0000 (14:37 +0200)]
drop logic to detect modules for root on loop device
disabled since 2002 so apparently nobody cares for it and it breaks
initrd generation during loop mounted image creation
Jan Palus [Fri, 3 Mar 2023 14:26:03 +0000 (15:26 +0100)]
luks: reword warning about unsupported option
the fact that genititrd does not support certain options does not
necessarily makes them invalid
Jan Palus [Fri, 3 Mar 2023 14:25:12 +0000 (15:25 +0100)]
luks: log only unsupported option, not all of them
Jan Palus [Wed, 28 Sep 2022 20:06:30 +0000 (22:06 +0200)]
check if /newroot/dev/console creation can succeed
/newroot is mounted read-only hence by default nothing can be created
below it unless /newroot/dev is mounted to something else.
unfortunately `test -w /newroot/dev` in initrd does not check whether
containing filesystem is mounted read-only
Jan Palus [Wed, 28 Sep 2022 20:04:22 +0000 (22:04 +0200)]
don't try to mount /usr if it's not on separate fs
Jan Palus [Wed, 28 Sep 2022 16:42:21 +0000 (18:42 +0200)]
luks: initial support for luks2 tokens
tested with fido2 token only. to disable set USE_LUKS_TOKEN=no
systemd fido2 and tpm2 tokens need dlopened libraries for respective
functionality (systemd avoids hard dependency on external deps)
Jan Palus [Wed, 28 Sep 2022 15:46:24 +0000 (17:46 +0200)]
luks: look for key in /etc/cryptsetup-keys.d
if key is empty or "none" or "-" crypttab(5) instructs to look for key
in "/etc/cryptsetup-keys.d/<LUKSNAME>.key". don't fail if it's missing
though:
If the field is not present or is "none" or "-", a key file named after
the volume to unlock (i.e. the first column of the line), suffixed with
.key is automatically loaded from the /etc/cryptsetup-keys.d/ and
/run/cryptsetup-keys.d/ directories, if present.
Jan Palus [Wed, 28 Sep 2022 15:40:48 +0000 (17:40 +0200)]
luks: correct indentation
Jan Palus [Wed, 28 Sep 2022 15:31:31 +0000 (17:31 +0200)]
luks: "none" and "-" both mean no key file
Jan Palus [Wed, 28 Sep 2022 15:29:36 +0000 (17:29 +0200)]
luks: use posix compliant "AND" operator
Jan Palus [Tue, 20 Sep 2022 12:01:58 +0000 (14:01 +0200)]
swsusp: don't consider in-memory zram swaps
Jan Palus [Tue, 20 Sep 2022 00:18:28 +0000 (02:18 +0200)]
usbkbd: find usb controllers attached to any bus
fallback to pci-exclusive method if none were found
Jan Palus [Mon, 19 Sep 2022 22:59:06 +0000 (00:59 +0200)]
usbkbd: always add hid-generic if usb keyboard was found
Jan Palus [Mon, 19 Sep 2022 22:55:49 +0000 (00:55 +0200)]
luks: try adding modules for cbc(aes) and xts(aes) aliases
Jan Palus [Mon, 1 Nov 2021 21:46:34 +0000 (22:46 +0100)]
don't fail if root device cannot be determined
useful when creating generic images on loop device (/dev not mounted,
root referenced by either LABEL or UUID, required modules added manually)
Jan Palus [Mon, 1 Nov 2021 21:38:55 +0000 (22:38 +0100)]
add support for using modprobe instead of insmod
allows honouring module parameters passed in kernel command line
Arkadiusz Miśkiewicz [Sun, 22 Aug 2021 17:13:09 +0000 (19:13 +0200)]
AES/CBC can be built-in (and in PLD 5.13 kernel CBC is built-in).
Jan Palus [Wed, 30 Dec 2020 18:42:52 +0000 (19:42 +0100)]
add support for lz4 compressor
Jan Palus [Wed, 30 Dec 2020 18:13:27 +0000 (19:13 +0100)]
fix zstd compression
Arkadiusz Miśkiewicz [Sat, 26 Dec 2020 00:04:09 +0000 (01:04 +0100)]
Disable swsusp support when swap device not found.
Arkadiusz Miśkiewicz [Sat, 26 Dec 2020 00:03:50 +0000 (01:03 +0100)]
- swsusp support from mis@pld-linux
Jan Palus [Thu, 12 Nov 2020 10:46:39 +0000 (11:46 +0100)]
don't try to expand pci devices if pci bus is missing
Arkadiusz Miśkiewicz [Thu, 6 Feb 2020 16:34:03 +0000 (17:34 +0100)]
Move /run mount to newroot. Always mount run for easier transition to /run hierarchy later.
Arkadiusz Miśkiewicz [Tue, 4 Feb 2020 21:28:16 +0000 (22:28 +0100)]
glibc 2.31 ldd prints 'not a dynamic executable' on stderr, so silence it.
Arkadiusz Miśkiewicz [Mon, 25 Nov 2019 19:15:24 +0000 (20:15 +0100)]
Accept d/D symbols, too (
ffffffff825ca52c D __initramfs_start) as noticed in recent 4.19.85-1 kernel.
Arkadiusz Miśkiewicz [Sun, 21 Jul 2019 19:04:05 +0000 (21:04 +0200)]
Try to detect a need for nvme driver. If you know better method then share with us.
Elan Ruusamäe [Mon, 15 Jul 2019 20:56:58 +0000 (23:56 +0300)]
fix indent
Arkadiusz Miśkiewicz [Mon, 15 Jul 2019 17:59:46 +0000 (19:59 +0200)]
Another way for findings usb keyboard drivers that works on newer kernels.
Arkadiusz Miśkiewicz [Wed, 15 May 2019 19:04:45 +0000 (21:04 +0200)]
Prepend cpu microcode to initrd image, so kernel will pick it up when LILO is in use.
Arkadiusz Miśkiewicz [Fri, 25 Jan 2019 19:38:24 +0000 (20:38 +0100)]
Timeout here is not a good idea. rootfs cannot be mounted and kernel oopses due to that.
Arkadiusz Miśkiewicz [Tue, 18 Dec 2018 13:43:20 +0000 (14:43 +0100)]
Use existing mechanism for installing udev apps but install regular variants, too if initrd-variants don't exist.
Arkadiusz Miśkiewicz [Tue, 18 Dec 2018 13:38:55 +0000 (14:38 +0100)]
udevd uses ata_id and scsi_id, so install these.
Arkadiusz Miśkiewicz [Tue, 18 Dec 2018 13:34:38 +0000 (14:34 +0100)]
Install mdadm in /sbin because udevd expects it to be there.
Arkadiusz Miśkiewicz [Tue, 18 Dec 2018 13:33:12 +0000 (14:33 +0100)]
Install blkid in /sbin because udevd expects it to be there.
Arkadiusz Miśkiewicz [Mon, 17 Dec 2018 14:44:14 +0000 (15:44 +0100)]
tmp is now mounted early, so no need to duplicate.
Arkadiusz Miśkiewicz [Mon, 17 Dec 2018 14:43:55 +0000 (15:43 +0100)]
Use mdadm instead of mdassemble (since mdadm 4.1 dropped mdassemble).
Arkadiusz Miśkiewicz [Mon, 17 Dec 2018 14:21:11 +0000 (15:21 +0100)]
Mechanism for waiting until devices are available (wired for mod-md for now). Bit ugly but working.
Arkadiusz Miśkiewicz [Tue, 14 Aug 2018 12:08:52 +0000 (14:08 +0200)]
Fix condition for --debug mode which adds additional text after 'inactive' text.
Arkadiusz Miśkiewicz [Tue, 14 Aug 2018 11:57:58 +0000 (13:57 +0200)]
Include more modules for luks. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809686#10
Arkadiusz Miśkiewicz [Tue, 14 Aug 2018 11:32:41 +0000 (13:32 +0200)]
cryptsetup needs /var/run/cryptsetup dir.
Arkadiusz Miśkiewicz [Tue, 14 Aug 2018 11:09:55 +0000 (13:09 +0200)]
libpthread dlopens libgcc_s.so.1, so install it.
Arkadiusz Miśkiewicz [Mon, 13 Aug 2018 20:49:31 +0000 (22:49 +0200)]
Drop forced luks type as latest tools support luks2, too. Leave it for cryptsetup autodetection.
Arkadiusz Miśkiewicz [Fri, 10 Aug 2018 08:40:59 +0000 (10:40 +0200)]
ramdisk_size warning makes no sense for initramfs.
Arkadiusz Miśkiewicz [Fri, 4 May 2018 13:50:18 +0000 (15:50 +0200)]
ext4 can use crc32 but has it in softdep only
Arkadiusz Miśkiewicz [Mon, 13 Nov 2017 09:29:41 +0000 (10:29 +0100)]
Add support for zstd(.spec) compression.
Tomasz Pala [Mon, 29 Aug 2016 20:32:32 +0000 (22:32 +0200)]
warn about btrfs not fully supported by geninitrd
Before mounting multidevice btrfs filesystem, `btrfs device scan' needs to
be executed, otherwise filesystem won't mount. Without the btrfs binary,
one might instruct kernel in command line insted, but this is also not
supported (blkid finds single device only). Since there is dracut, just
notice user about this shortcoming, so he could properly configure
bootloader by manually appending appropriate devices when needed.
Tomasz Pala [Mon, 29 Aug 2016 17:31:57 +0000 (19:31 +0200)]
Revert "revert bogus commit"
This 'formatting fuckup' was the point for saving scrollback buffer.
As you probably don't put it together, issuing debuginitrd throws all that function
contents to your face during boot.
This reverts commit
9d45e9b492b0114bf5a536918b5ca511e8c5dcef .
Elan Ruusamäe [Mon, 15 Aug 2016 20:43:06 +0000 (23:43 +0300)]
revert bogus commit
no actual change recorded, instead some formatting fuckup
Revert "save 19 lines of debug output (debugrd)"
This reverts commit
6ed0f7b1ebdba0a6aaed765e3f4c293ac09f975b .
Tomasz Pala [Sun, 14 Aug 2016 20:01:15 +0000 (22:01 +0200)]
save 19 lines of debug output (debugrd)
Tomasz Pala [Sun, 14 Aug 2016 18:10:24 +0000 (20:10 +0200)]
save precious scrollback buffer contents when data can be fetched later
Tomasz Pala [Sun, 14 Aug 2016 15:54:37 +0000 (17:54 +0200)]
hid-generic required as well
Tomasz Pala [Sun, 14 Aug 2016 10:03:51 +0000 (12:03 +0200)]
newer platforms use xHCI, newer kernels require PCI over HCD modules
https://marc.info/?l=git-commits-head&m=
141276811802511 &w=2
Elan Ruusamäe [Wed, 29 Jun 2016 19:58:16 +0000 (22:58 +0300)]
git tag -l
"git tags" was my local alias i didn't even realize it's not git builtin :)
Elan Ruusamäe [Wed, 29 Jun 2016 19:55:58 +0000 (22:55 +0300)]
use git-for-each-ref to find last tag
omits two commands from pipeline
Elan Ruusamäe [Wed, 29 Jun 2016 19:48:43 +0000 (22:48 +0300)]
accept rootfs= kernel commandline argument
Arkadiusz Miśkiewicz [Tue, 7 Jun 2016 14:52:17 +0000 (16:52 +0200)]
Also mount /run as noexec,nosuid,nodev (as suggested by qboosh).
Arkadiusz Miśkiewicz [Tue, 7 Jun 2016 06:36:48 +0000 (08:36 +0200)]
cryptsetup: Use 120s timeout when asking for password.
Arkadiusz Miśkiewicz [Tue, 7 Jun 2016 06:30:46 +0000 (08:30 +0200)]
Mount /run with 0755.
Arkadiusz Miśkiewicz [Fri, 13 May 2016 22:36:02 +0000 (00:36 +0200)]
Make rootdev fallback work.
Arkadiusz Miśkiewicz [Sat, 7 May 2016 10:34:33 +0000 (12:34 +0200)]
Use uevent feature of new busybox instead of pure and racy mdev via hotplug
Arkadiusz Miśkiewicz [Fri, 26 Feb 2016 17:15:14 +0000 (18:15 +0100)]
Check if kernel supports specified INITRDFS (tested with initramfs and romfs only though)
Arkadiusz Miśkiewicz [Sun, 31 Jan 2016 16:03:18 +0000 (17:03 +0100)]
Allow containers in ex devices.
Arkadiusz Miśkiewicz [Sun, 31 Jan 2016 16:00:15 +0000 (17:00 +0100)]
Always include partitions and containers when starting mdadm array.
Arkadiusz Miśkiewicz [Wed, 20 Jan 2016 20:57:53 +0000 (21:57 +0100)]
Reorder compressors, so best (smallest image) is used first. Using best compression to avoid a need to play with kernel options to load bigger ramdisks.
Arkadiusz Miśkiewicz [Mon, 9 Nov 2015 12:02:48 +0000 (13:02 +0100)]
Allow usage of UUID/LABEL in /etc/crypttab.
Arkadiusz Miśkiewicz [Sun, 28 Jun 2015 13:12:15 +0000 (15:12 +0200)]
Add basic group file and make NSS calls working. Fixes 'specified group "xyz" unknown' when udev starts from initrd.
Arkadiusz Miśkiewicz [Sun, 28 Jun 2015 12:38:20 +0000 (14:38 +0200)]
One more fallback for rootdev.
Elan Ruusamäe [Fri, 15 May 2015 22:32:05 +0000 (01:32 +0300)]
preserve permissions when copying to initrd
initramfs has permissions and timestamps compared to romfs, so preserve
original file permissions, instead being affected from umask when
geninitrd was ran
Arkadiusz Miśkiewicz [Thu, 26 Mar 2015 16:52:19 +0000 (17:52 +0100)]
One install is fine.
Arkadiusz Miśkiewicz [Thu, 26 Mar 2015 16:48:46 +0000 (17:48 +0100)]
Support all libdir (lib lib64 libx32) directories.
Arkadiusz Miśkiewicz [Thu, 26 Mar 2015 12:26:16 +0000 (13:26 +0100)]
Prefer suspend/resume binary over initrd/resume. Install previously found binary instead hardcoded one.
Elan Ruusamäe [Mon, 23 Mar 2015 10:06:39 +0000 (12:06 +0200)]
try mounting /usr before switchroot
Elan Ruusamäe [Wed, 25 Feb 2015 21:57:37 +0000 (23:57 +0200)]
search binaries from multiple initrd dirs
Elan Ruusamäe [Wed, 25 Feb 2015 21:57:11 +0000 (23:57 +0200)]
add x32 ld-linux
Elan Ruusamäe [Wed, 25 Feb 2015 21:56:22 +0000 (23:56 +0200)]
x32 install fix
install stuff to original path, don't try to move all to /lib*
Elan Ruusamäe [Wed, 25 Feb 2015 18:54:28 +0000 (20:54 +0200)]
abort initrd generation if compress tool is not found
Arkadiusz Miśkiewicz [Wed, 26 Nov 2014 20:37:35 +0000 (21:37 +0100)]
Support discard/allow-discard cryptsetup LUKS option. Replace deprecated luksOpen with current method.
Arkadiusz Miśkiewicz [Sat, 8 Nov 2014 19:57:21 +0000 (20:57 +0100)]
btrfs module needs libcrc32c functionality.
Arkadiusz Miśkiewicz [Mon, 13 Oct 2014 15:26:31 +0000 (17:26 +0200)]
Don't hide errors.
Arkadiusz Miśkiewicz [Mon, 13 Oct 2014 15:25:23 +0000 (17:25 +0200)]
Support for 3.18.x kernel compressed modules.
Arkadiusz Miśkiewicz [Fri, 29 Aug 2014 21:27:00 +0000 (23:27 +0200)]
Actually newline is needed in initial mdev.seq.
Arkadiusz Miśkiewicz [Fri, 29 Aug 2014 21:20:25 +0000 (23:20 +0200)]
Enable antirace mdev feature.
Arkadiusz Miśkiewicz [Mon, 9 Jun 2014 09:19:10 +0000 (11:19 +0200)]
Load configured font and do it early.
Arkadiusz Miśkiewicz [Wed, 21 May 2014 09:14:24 +0000 (11:14 +0200)]
Show real command in error message.
Arkadiusz Miśkiewicz [Wed, 14 May 2014 17:05:42 +0000 (19:05 +0200)]
Install 95-dm-notify.rules. Fixes problems with using dmcrypt and errors (in debug mode) like 'Udev cookie 0xd4dc311 (semid 229380) waiting for zero'
Elan Ruusamäe [Wed, 14 May 2014 07:08:23 +0000 (10:08 +0300)]
help tag making with git shortlog hint
Arkadiusz Miśkiewicz [Wed, 14 May 2014 06:20:49 +0000 (08:20 +0200)]
Add missing fi.
Elan Ruusamäe [Tue, 13 May 2014 21:21:16 +0000 (00:21 +0300)]
initrd_gen_setrootdev: retry ls -l for busybox 1.22, avoid writing 0 to real-root-dev
Elan Ruusamäe [Tue, 13 May 2014 21:08:09 +0000 (00:08 +0300)]
do not write real-root-dev, if value to be written is 0
Elan Ruusamäe [Tue, 13 May 2014 20:52:15 +0000 (23:52 +0300)]
handle only firmware add requests
similar fix as in rc-scripts
http://git.pld-linux.org/?p=projects/rc-scripts.git;a=commitdiff;h=
5a873f5d5eda4af38c2cc889fd6923e654188c17
Elan Ruusamäe [Tue, 13 May 2014 20:47:16 +0000 (23:47 +0300)]
local dir variable
Elan Ruusamäe [Tue, 13 May 2014 20:42:24 +0000 (23:42 +0300)]
use fixed DESTDIR in verbose logs
Arkadiusz Miśkiewicz [Fri, 11 Apr 2014 08:00:37 +0000 (10:00 +0200)]
Handle rootflags= option. Leave support for (invalid) rootfsflags= option.
Arkadiusz Miśkiewicz [Mon, 24 Feb 2014 07:45:34 +0000 (08:45 +0100)]
Run cryptsetup with --debug when debuginitrd specified. Add debugshell before cryptsetup runs.
Arkadiusz Miśkiewicz [Sat, 1 Feb 2014 13:31:52 +0000 (14:31 +0100)]
Disallow expansion.
Elan Ruusamäe [Fri, 17 Jan 2014 22:00:31 +0000 (00:00 +0200)]
cleanup unused FILES variable
Elan Ruusamäe [Thu, 16 Jan 2014 23:15:04 +0000 (01:15 +0200)]
handle bcache as rootfs. test: root=LABEL=/ worked
Elan Ruusamäe [Thu, 16 Jan 2014 22:56:06 +0000 (00:56 +0200)]
clean cvs leftover
Elan Ruusamäe [Thu, 16 Jan 2014 21:20:46 +0000 (23:20 +0200)]
add bcache support; depends on udev
This page took 1.038474 seconds and 4 git commands to generate.