Commit Graph

844 Commits

Author SHA1 Message Date
Ivan A. Melnikov
98a9c1f303 Use correct path for system tar2fs
tar2fs comes from m-p, not from mkimage. Also, we should
use $TOPDIR from shell, not $(TOPDIR) from make, when
calling it.

Note: this is a security fix for environments relying
on packaged mkimage-profiles with sudo enabled for the
builder user.

Fixes: f293239d5b
2018-12-25 15:42:56 +03:00
Michael Shigorin
744950aff2 e2k: rework use/x11/101* targets
This is meant to provide failsafe configuration by default,
at least until mga2 works reliably for me.
2018-12-24 20:28:49 +03:00
Michael Shigorin
8f1e411f2b e2k: add fstrim support
None of Elbrus systems I had a chance to use as root
had any problems regarding TRIM feature of SSDs these
used to carry/support; let's start with e2k and maybe
carry over to x86 later.
2018-12-24 20:25:57 +03:00
Denis Pynkin
20b0b23fa2 regular.mk, lxc, lxd: updated regular-server-lxd
Use lxd-bridge for networking.
2018-12-24 19:54:15 +03:00
Denis Pynkin
32e2ca5510 init: added multi-user boot target for systemd 2018-12-24 19:47:35 +03:00
Denis Pynkin
c01e073803 lxc: new feature for linux containers 2018-12-24 19:46:05 +03:00
f35351d877 init: avoid add root dev to fstab for vm image
This was erroneously added to overly broad class of images.
2018-12-24 19:22:33 +03:00
90ab85abfa init: delete non-existing systemd feature
It was dropped from make-initrd back in 2012:
http://git.altlinux.org/gears/m/make-initrd.git?p=make-initrd.git;a=commitdiff;h=853eed35ea72cf5a6409ef7f465f76da4f5dd097
2018-12-24 19:22:32 +03:00
Anton Midyukov
bbe5085633 x11: new target use/x11/armsoc
xorg-dri-armsoc for armh and aarch64
2018-12-24 18:28:10 +03:00
Anton Midyukov
4aa54c9ea3 drop use/palemoon/suggested
Package palemoon-suggested no longer exists.
2018-10-29 12:46:25 +03:00
Anton Midyukov
b443f9ca4a new target use/x11/lxdm
lxdm - lightweight display manager for LXDE
2018-10-29 12:46:18 +03:00
Michael Shigorin
ce0f4ed33c tty: use proper i-f-serial
...the one starting agetty in installer if told so (0.4+);
also improve runlevel 2 with potential serial access.
2018-10-29 12:45:49 +03:00
Michael Shigorin
b13ba8129f stage2: fix make-initrd environment on p8
This has manifested on e2k for me -- still using older
make-initrd lacking R: file -- so let's get this kludge
back for a while, or until any reasonable make-initrd
around has *everything* it needs to create images
listed in its runtime requirements.

Fixes: 2b3455c29a
2018-10-29 12:45:47 +03:00
Michael Shigorin
ae4007c2ca rescue, rootfs: #35350 workaround
filesystem package has been severely broken in sisyphus
since late August unfortunately, and I was too busy to
even notice that for too long; let's plug this kludge
until it's fixed now that I've finally seen that crap :-/

See-also: https://bugzilla.altlinux.org/35350
2018-10-15 22:50:57 +03:00
Michael Shigorin
2b3455c29a stage2: fix cifs-related bits
sin@ was kind enough to just stick mount.cifs into initrd
regardless of its presence in the chroot in question;
let's look first and only add what's found.

This started as a stopgap fix after make-initrd 2.2.0
which happened to collide with cifs-related m-p commits
in a somewhat unfortunate manner...
2018-10-15 22:46:05 +03:00
Anton Midyukov
cabe92c2d4 s/sysk*logd/rsyslog/g
ldv@ has dropped sysklogd from sisyphus due to
its long-standing FTBFS and "other problems":
http://git.altlinux.org/tasks/archive/done/_207/211999/logs/events.6.1.log

The current recommended replacement is rsyslog
which is fine by itself but really overcomplicated
for the barebones logging system we usually need...
2018-10-15 22:45:41 +03:00
Michael Shigorin
78b4b88bdd efi: drop sbsigntools
These got removed from Sisyphus during OpenSSL 1.1 transition.
2018-10-15 22:45:36 +03:00
Evgeny Sinelnikov
00a828bc85 stage1: fix CIFS installation method 2018-10-15 22:45:19 +03:00
Michael Shigorin
528cabd5c0 apt-conf: fix IMAGE_INIT_LIST handling
It shouldn't be overridden but rather appended to;
the leading "+" is ensured by lib/profile.mk
(see also mkimage's README for details).
2018-10-15 22:44:34 +03:00
Michael Shigorin
c5c2ea9d79 init: tweak +systemd
Added chkconfig (spotted in alt-server's m-p-d)
and vconsole-setup-kludge@X86 (common problem
stop-gap item, unfortunately).
2018-08-13 20:02:16 +03:00
Michael Shigorin
fdd117f4e6 kernel, regular.mk: use/kernel/server
It's apparently needed for ALT Server and has been
used implicitly for server-pve starterkit.
2018-08-13 20:01:58 +03:00
Michael Shigorin
42ae9f2fab kernel, firmware: fix KMODULES use
Looks like a thinko by now...
2018-08-13 20:01:52 +03:00
Michael Shigorin
a490e39d35 bootloader, mixin.mk: use/bootloader/os-prober
This really belongs to bootloader feature rather than
to mixin/desktop-installer alone; moving out.
2018-08-13 20:01:42 +03:00
Michael Shigorin
1ee6e31b92 volumes: initial feature
This one is directly a counterpart to mkimage-profiles-desktop's
vm-profile-% contained in use.mk.in.
2018-08-13 20:00:12 +03:00
Michael Shigorin
97719fe8b3 apt-conf: obvious fix
A brown paper bag class bug :-(
2018-08-07 16:35:44 +03:00
Michael Shigorin
e35e3db878 apt-conf: initial feature
This has been factored out from distro/alt-workstation
adaptation for e2k arch (as it looks more widely useful).
2018-08-06 21:39:31 +03:00
Michael Shigorin
8745bee846 e2k: support e101/mga2
Elbrus 101-PC was initially supported through kernel
modesetting driver only, now it's got a sort of native
driver running on ALT too.
2018-08-06 21:38:25 +03:00
Michael Shigorin
7ada49f7bf install2: add fatresize too
IIRC it's actually looked for by EVMS fat plugin.
2018-08-06 20:38:01 +03:00
Michael Shigorin
98e889830e main, repo: introduced suffix support
This is to make building addon images possible;
those carrying packages but lacking any stage2.
2018-08-06 20:33:10 +03:00
Michael Shigorin
611ec48ecb slightly better license info
There's an ISO9660 COPY tag for license info file;
make use of it, factoring use/docs/license out
while at that.

One of the goals was to make it hold the reference
to reference to GPL in regular builds and starterkits
;-)
2018-07-25 16:49:04 +03:00
Michael Shigorin
a257c2aece build-distro: add isodata metadata support
A bunch of duplicated variable names for mkimage,
just short-circuit those to the already available
(and hopefully filled in) BOOT_* ones.
2018-07-25 16:49:02 +03:00
Michael Shigorin
3c2ef1c035 rework isoboot support beyond x86
Every .iso was assumed to be bootable since the very beginning[*],
and isoboot images were deemed to be x86 isolinux ones; this didn't
change with basic ppc/armh support as I never ran into hardware
that would _boot_ those ISOs, not only run the code, and it was
only e2k isodata project that finally forced this refactoring.

It's still not perfect: pack and syslinux features still end up
somewhat interwoven, and too much places care for architecture
the image is being built for (instead of archdep features tossing
their appropriate bits and pieces in).

Should help:
- any-arch regarding isodata images;
- {x86,aarch64}/efi by decoupling isoboot and isolinux;
- ppc{,64} as introducing yaboot support will be easier now;
- mipsel{,64} too, hopefully.

* I knew of school addon images baked with mkimage-profiles-desktop
  but postponed and then neglected the whole problem for years...
2018-07-25 16:49:01 +03:00
Michael Shigorin
db319bb4b3 e2k: skip license step during installation
This one will be handled by MCST at the moment.
2018-07-25 16:48:47 +03:00
Michael Shigorin
98601e13f7 vmguest: make arch-aware
+vmguest should work everywhere it can at all either;
it's most advanced on x86_64 in terms of hypervisors
available; still aarch64 has kvm too.
2018-07-20 15:51:01 +03:00
Michael Shigorin
9e59e5a111 install2: make arch-aware
+installer should work everywhere it can at all,
but full-blown one is currently developed on x86;
provide at least the reasonable chunk elsewhere.
2018-07-20 15:41:42 +03:00
Mikhail Efremov
410a00d40c live: Install /etc/*-release files if needed
Seems some other branding-*-release can be installed in live
chroot and post of needed branding-*-release package don't copy
these files.
2018-07-16 20:52:17 +03:00
Mikhail Efremov
c9ac5e8c4a domain-client: Split out installer-features*
Otherwise they can be pulled on live.
2018-07-16 20:52:17 +03:00
Mikhail Efremov
308901c6d4 live: Enable livecd-timezone by default 2018-07-16 20:52:16 +03:00
Mikhail Efremov
a618abb49f syslinux: Use vga=normal
This is more appropriate default value nowaday.
2018-07-16 20:52:16 +03:00
Mikhail Efremov
85a7258d69 cleanup: Add GLOBAL_LIVE_NO_CLEANUPDB support
If set then don't remove apt and rpm from live images.
2018-07-16 20:52:16 +03:00
Mikhail Efremov
20dfef8045 l10n: Don't hardcode lang in kernel cmdline
The 'lang' option will be added by gfxboot according with
choosed language.
2018-07-16 20:52:16 +03:00
Mikhail Efremov
2b50111650 services: Don't touch services already listed in the config
If service already listed in the config files, then ignore
status in the profiles variables.
2018-07-16 20:52:16 +03:00
Konstantin A. Lepikhov
05ca4dd4e3 x11/use/glvnd: added GLVND support
Added glvnd packages to test.
2018-07-09 09:36:42 +03:00
Konstantin A. Lepikhov
b278c718ad features: added LDM support
Linux Driver Management (aka LDM) allows easy configuration of different
hardware. Currently this hook does GPU configuration on systems with
multiple GPUs (aka Optimus/PRIME).
2018-07-08 20:44:41 +03:00
Michael Shigorin
9f13f129ec x11: add slick-greeter support
Looks better than lightdm-gtk-greeter indeed;
present in both sisyphus and p8 as of today.
2018-07-08 20:41:30 +03:00
Michael Shigorin
40cd1c580f install2: use/install2/fat target
This adds mkfs.fat and fsck.fat utilities to installer
so it's able to create/mount this "filesystem" as well.
2018-07-08 20:41:18 +03:00
Michael Shigorin
9e80387420 profiles, metadata: s/PKG_PROFILES/THE_PROFILES/g
...to reduce the divergence with the rest of related variables;
these installer profiles affect the default checkbox states.
2018-06-25 09:54:53 +03:00
Michael Shigorin
9d4b3e1f42 e2k: avoid messing with hwclock
...which will only result in a FAILED message,
most probably the solitary one throughout the
whole sysvinit boot.
2018-06-25 09:54:31 +03:00
Michael Shigorin
45d9147955 e2k, e2k.mk: better platform support
The goal was simple: every use/e2k/{x11,install2}/$MACHINE
must be self-sufficient regarding platform support, that is
it must depend on the corresponding CPU-specific target.

A bit less make-tech but still better overall.

NB: llvm cleanup is not needed anymore after upgrade to
    Mesa-17/llvm-3.7, should be dropped like this year.
2018-06-25 09:40:30 +03:00
Michael Shigorin
bc37f88407 e2k: cleanup comments
Forgot to do that before merging, sorry.

(xorg-drv-ati cares for dependencies
but we still prefer modesetting driver
in the installers to make them versatile)
2018-06-25 09:39:31 +03:00