Commit Graph

91 Commits

Author SHA1 Message Date
Anton Midyukov
fc5717aea5 stage2: enable bootchain for p11, c11* branches 2024-02-26 16:49:32 +07:00
Anton Midyukov
67f2ddc77b stage2: enable bootchain for e2k 2024-02-26 16:35:38 +07:00
Anton Midyukov
bb124c4f42 stage2: add use/stage2/net-install-live
Designed to be added to an image with use/live-install/pkg +
use/live/rescue.
Also see commit 41a881f61c
2024-02-09 22:52:06 +07:00
Anton Midyukov
6ff3568459 stage2, live-install: --no-hardlinks to squashcfg.mk if LIVE_INSTALL specified
--no-hardlinks is only needed for live, which will be installed.
2023-12-07 13:20:05 +07:00
Anton Midyukov
6a0cf73a4a stage2: add rk8xx-{spi,i2c}.ko to 50-stage2-sbc-aarch64
Needed for Rockchip support (mmc, ethernet) on kernel >= 6.5.
2023-11-15 23:50:00 +07:00
Anton Midyukov
5f704a4b1f Drop refind and elilo support everything 2023-08-21 20:10:32 +07:00
Anton Midyukov
17037081ce set GLOBAL_HSH_PROC=1 in lib/profile.mk
glibc can be compiled such that mki-fake-dev requires /proc to works.
This on loongarch64.
2023-07-24 09:59:42 +07:00
Anton Midyukov
cafe6e516c stage2: add kernel/fs/smb path to 50-stage2-net-cifs
In new kernels cifs.ko is now there.
2023-07-19 15:40:18 +07:00
Anton Midyukov
d6e56e0a3b stage2: add f2fs support to 50-stage2-fs kernel modules list
f2fs required crc32_generic.ko
2023-07-03 14:50:13 +07:00
Anton Midyukov
da3e0482e5 stage2: save cpe from /etc/os-release to .disk/cpe
See: https://bugzilla.altlinux.org/46271
2023-05-26 16:35:06 +07:00
Anton Midyukov
71c4debac5 stage2: fix use/stage2/kms/nvidia
All drm modules are added to the first and second stages, except
for nouveau and nvidia. Nouveau is added to stage2. nvidia needs
to be added to live and the base system separately. This is an
auxiliary target.

See also https://bugzilla.altlinux.org/31971
2023-04-10 23:06:04 +07:00
Anton Midyukov
363ba22a2e Include README of features to documentation; fix syntax & links in them 2023-03-18 21:57:39 +07:00
Anton Midyukov
45371fb58e stage2,initrd-*: fix adding udev rules for named network interfaces
If udev-rule-generator-net is installed on the system, add the interface
naming rules from this package to the initrd. If not, add the standard
udev rules.
2023-03-10 19:31:26 +07:00
Anton Midyukov
76e145cb2f stage2: add option '--no-hardliks' to mksquashfs
When unpacking squash into multiple partitions using unsquashfs,
hardlinks are not converted to files and an unpacking error occurs.
See also: https://bugzilla.altlinux.org/45329
2023-03-01 13:52:27 +07:00
Anton Midyukov
e7d0f03959 Set variable BRANCH, if not defined or empty; show $BRANCH
So much clearer and easier.
Thanks glebfm@ for the idea.
2022-12-30 20:02:11 +07:00
Anton Midyukov
a9ded39b26 stage2: add copy devicetree in 95-copy-kernel, if $GLOBAL_COPY_DTB is set
dtb on an ESP partition can be loaded by u-boot.
devicetree directory contain symlinks to enable booting on systems,
where use path of directory by vendor (modern u-boot) and flat path
(older u-boot). In the case of iso, there is no need to support old
u-boot given the price of 15 MB image increase on aarch64.
2022-06-24 19:34:24 +07:00
Anton Midyukov
71e209e201 create initrd.img with propagator instead full.cz
With this change, we simplify the created initrd image. Kernel
modules and firmware are added by make-Initrd itself. The layer
in Initrd is now one. It also allows you to unifyed configs for
bootloading with propagator and bootchain.
Config files for refind and elilo is creates in mkimage, so have
to copy initrd.img in efi/boot/ with the name full.cz.
2022-06-03 21:58:34 +07:00
Anton Midyukov
02b9112c5c stage2: fix 50-stage2-fs
Fixed regression caused by a commit 7a2f65f959.
2022-04-18 21:39:13 +07:00
Anton Midyukov
4fedcf4f86 stage2: add more modules to 50-stage2-net
When building with the propagator feature kernel/net/packet/af_packet.ko
were not added. Because of this, dhcp does not work.
The other also seem to be useful.
2022-04-05 14:10:53 +07:00
Anton Midyukov
79f541e21d stage2: use propagator for c% BRANCH also
The actual certified branch is always the same, and at the moment
you need to use propagator in it.
2022-03-25 09:37:27 +07:00
Anton Midyukov
7a2f65f959 stage2: stage1 modules list update
Use full PATH, because otherwise extra modules with the same
endings are packed.
Instead of listing modules from the same directory, the path
to the directory is used.
The 10-stage2 list has been cleaned up, but still has a lot
of redundancy. Need added some basic lists for all targets.
2022-03-02 11:04:46 +07:00
Anton Midyukov
384885f739 stage2: add more modules to 50-stage2-sbc-aarch64 2022-03-02 11:04:45 +07:00
Anton Midyukov
231488e338 stage2: add Baikal M support to 50-stage2-usb list 2022-01-19 20:28:51 +07:00
Anton Midyukov
219291c44d stage2: add explicitly kernel/drivers/net/ethernet to 50-stage2-net 2021-09-23 01:26:03 +07:00
Anton Midyukov
c1efb923ea build-vm, stage2: set GLOBAL_HSH_PROC=1
Enable /proc for build vm/<target> and distro/<target> with use/stage2.
/proc needed for make-initrd >= 2.23.0.
See also https://bugzilla.altlinux.org/40900
2021-09-13 07:40:44 +07:00
Anton Midyukov
0a4e458aea stage2: use/initrd-propagator for e2k%
Need to support initrd-bootchain in e2k feature.
2021-09-04 22:05:08 +07:00
Anton Midyukov
e64557d8ea stage2: use/initrd-bootchain instead use/initrd-propagator for sisyphus 2021-09-04 21:52:15 +07:00
Anton Midyukov
b3ac67eb29 stage2: add use/stage2/net-install
Adds grub "Network installation" submenu and kernel modules to
initrd needed for network booting.
2021-09-03 02:29:06 +07:00
Anton Midyukov
51e93b2f3e stage2: update 50-stage2-sbc-aarch64
So will be the best SBC support.
2021-08-31 00:45:31 +07:00
Anton Midyukov
3e77e02956 grub, initrd-propagator, stage2, syslinux: set STAGE1_INITRD_BOOTARGS in initrd-propagator 2021-05-12 13:36:59 +07:00
Anton Midyukov
37f5fbca95 stage2: copy initrd instead full*.cz, if that is not available
In the future, it is planned building iso without propagator.
2021-04-12 23:13:57 +07:00
Anton Midyukov
3259b2faa8 initrd-propagator: Select the propagator as a separate feature 2021-04-12 23:13:57 +07:00
Anton Midyukov
d9dca6cb1a doc, grub, stage1, stage2: Add support multiple kernels for grub only
At the moment, the ability to select the kernel with which to boot is
implemented only for grub (grub-pc, grub-efi, ieee1275boot).
note that renamed STAGE1_KFLAVOUR to STAGE1_KFLAVOURS, as multiple
kernels can now be added.
2021-04-12 23:13:47 +07:00
Anton Midyukov
1f4db6c7fe stage1: build propagator and copy kernel in mkimage-profiles 2021-04-06 00:15:59 +07:00
Anton Midyukov
465ddc27ad stage2: Added exfat support (50-stage2-fs) 2021-04-03 22:59:47 +07:00
Anton Midyukov
f5db78efcb stage2/stage1/modules.d: fix missing file extension (.ko) 2021-04-03 22:21:38 +07:00
Anton Midyukov
eb34af1318 stage2: Add cmac.ko to 50-stage2-net-cifs, 10-stage2
cmac.ko needed for use SMB2 and newer.
Reported-by: sin@
2021-04-03 22:12:04 +07:00
Anton Midyukov
6012ea4029 stage1: Del squash option '-noI'
squashfs built with this option are not loaded with modern kernels.
2021-04-03 22:10:01 +07:00
Dmitriy Terekhin
a30785ff8a stage2: use uuid-iso to identify the image by UUID 2021-04-03 21:50:03 +07:00
Anton Midyukov
b910f28925 stage2: Added reset-raspberrypi.ko into 50-stage2-sbc-aarch64
Needed for Raspberry Pi 4B 8 GB.
2021-01-26 11:58:29 +07:00
Anton Midyukov
283c03f0c5 stage2: Add more usb drivers into into 50-stage2-usb 2021-01-25 19:42:32 +07:00
Dmitriy Terekhin
4aeed7ed2e stage2/stage1: fix module names to match kernel 2020-12-05 21:03:03 +07:00
Anton Midyukov
b17ce57724 stage2: Not added nvidia kernel modules into propagator 2020-11-23 15:15:49 +07:00
Anton Midyukov
da9180838f drm, plymouth, stage2, x11: initial feature drm
The drm feature solves the problem of creating a common entry
point for adding kernel drm modules for different package lists.
The need for allocation into a separate feature arose from one
parties to the need to make a switch between free and proprietary
NVIDIA driver, on the other, because of the need to add only drm
modules kernels for purposes such as use/stage2/kms and use/plymouth.

Also no more switch needed for RADEON, as only the free video driver
remains.
2020-11-06 19:20:01 +07:00
Anton V. Boyarshinov
26a8aad09f Baikal-M specific modules into stage1 2020-10-26 16:54:21 +07:00
Anton Midyukov
4520594a21 stage2: Added fuse.ko into 50-stage2-fs for ntfs support 2020-09-21 14:53:27 +07:00
Anton Midyukov
77eb0456d1 stage2/stage1/modules.d/50-stage2-usb: fix typo 2020-06-10 03:13:29 +07:00
Anton Midyukov
d54b4fd1e8 stage2: add sdhci-pltfm.ko into 50-stage2-mmc 2020-05-22 13:34:37 +07:00
Anton Midyukov
2c761b78d7 kernel, stage2: add bcm2835-dma in initrd for Raspberry Pi 3 (kernel >= 5.6) 2020-05-22 13:34:37 +07:00
Anton Midyukov
a6051acf94 kernel, stage2: make initrd and initfs for all kernels 2020-05-22 13:34:35 +07:00