Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anton Palgunov
mkimage-profiles
Commits
46653cb6
Commit
46653cb6
authored
Feb 22, 2023
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Plain Diff
Merge tag 'v1.5.2' into sisyphus
v1.5.2
parents
c56ddd19
f6babce3
Show whitespace changes
Inline
Side-by-side
Showing
53 changed files
with
129 additions
and
363 deletions
+129
-363
live.mk
conf.d/live.mk
+2
-2
mixin-alt-server.mk
conf.d/mixin-alt-server.mk
+1
-1
mixin-basealt.mk
conf.d/mixin-basealt.mk
+1
-1
mixin.mk
conf.d/mixin.mk
+1
-0
regular-vm.mk
conf.d/regular-vm.mk
+11
-15
server-v.mk
conf.d/server-v.mk
+1
-1
50-bootargs
features.in/build-vm/image-scripts.d/50-bootargs
+0
-0
config.mk
features.in/deflogin/config.mk
+5
-2
50-livecd-user
features.in/deflogin/live/image-scripts.d/50-livecd-user
+11
-0
51-hasher
features.in/dev/live/image-scripts.d/51-hasher
+1
-193
config.mk
features.in/efi/config.mk
+0
-1
README
features.in/grub/README
+3
-1
86lang.cfg
features.in/grub/cfg.in/86lang.cfg
+9
-1
generate.mk
features.in/grub/generate.mk
+7
-2
50-var-run-fix
features.in/init/live/image-scripts.d/50-var-run-fix
+0
-9
50-var-run-fix
features.in/init/rescue/image-scripts.d/50-var-run-fix
+0
-3
50-var-run-fix
features.in/init/rootfs/image-scripts.d/50-var-run-fix
+0
-3
91-systemd
features.in/init/stage2/image-scripts.d/91-systemd
+0
-16
config.mk
features.in/install2/config.mk
+1
-0
config.mk
features.in/kernel/config.mk
+1
-0
50-l10n-sysconfig
features.in/l10n/install2/image-scripts.d/50-l10n-sysconfig
+16
-0
50-l10n-sysconfig
features.in/l10n/rootfs/image-scripts.d/50-l10n-sysconfig
+16
-0
10-live-hooks
features.in/live/live/image-scripts.d/10-live-hooks
+1
-1
config.mk
features.in/plymouth/config.mk
+8
-18
60-apt
features.in/rescue/rescue/image-scripts.d/60-apt
+0
-5
config.mk
features.in/sound/config.mk
+1
-1
config.mk
features.in/wireless/config.mk
+1
-0
40-x11-autologin
....in/x11-autologin/rootfs/image-scripts.d/40-x11-autologin
+4
-0
domain-server.directory
pkg.in/groups/centaurus/domain-server.directory
+0
-8
50-publishing.directory
pkg.in/groups/workstation/50-publishing.directory
+0
-8
freecad.directory
pkg.in/groups/workstation/freecad.directory
+0
-1
graphics-editing.directory
pkg.in/groups/workstation/graphics-editing.directory
+1
-1
qgis.directory
pkg.in/groups/workstation/qgis.directory
+0
-7
scribus.directory
pkg.in/groups/workstation/scribus.directory
+0
-2
admc
pkg.in/lists/centaurus/admc
+1
-0
disk-dvd
pkg.in/lists/centaurus/disk-dvd
+4
-0
domain-server
pkg.in/lists/centaurus/domain-server
+0
-17
mate
pkg.in/lists/centaurus/mate
+1
-1
net-base
pkg.in/lists/slinux/net-base
+1
-12
desktop+cinnamon
pkg.in/lists/tagged/desktop+cinnamon
+0
-1
desktop+live
pkg.in/lists/tagged/desktop+live
+0
-1
wireless
pkg.in/lists/tools/wireless
+0
-1
base.pkgs
pkg.in/lists/virt/base.pkgs
+8
-1
extra.pkgs
pkg.in/lists/virt/extra.pkgs
+3
-0
ganttproject
pkg.in/lists/workstation/ganttproject
+1
-1
libreoffice
pkg.in/lists/workstation/libreoffice
+1
-1
libreoffice-latest
pkg.in/lists/workstation/libreoffice-latest
+1
-1
qgis
pkg.in/lists/workstation/qgis
+0
-3
scribus
pkg.in/lists/workstation/scribus
+1
-0
the.pkgs
pkg.in/lists/workstation/the.pkgs
+3
-0
centaurus-10-server.directory
pkg.in/profiles/centaurus-10-server.directory
+1
-1
50-udev
sub.in/stage2/image-scripts.d/50-udev
+0
-9
90-cleanup-drm
sub.in/stage2/image-scripts.d/90-cleanup-drm
+0
-10
No files found.
conf.d/live.mk
View file @
46653cb6
...
...
@@ -52,7 +52,7 @@ distro/.live-desktop: distro/.live-x11 +live use/live/install use/stage2/net-eth
use/plymouth/live; @:
distro/.live-desktop-ru: distro/.live-desktop use/live/ru; @:
distro/.live-kiosk: distro/.live-base use/live/autologin
use/live/runapp
\
distro/.live-kiosk: distro/.live-base use/live/autologin \
use/syslinux/timeout/1 use/cleanup use/stage2/net-eth \
use/fonts/otf/adobe
@$(call add,CLEANUP_PACKAGES,'alterator*' 'guile*' 'vim-common')
...
...
@@ -142,7 +142,7 @@ distro/live-gimp: distro/live-icewm use/live/ru
@$(call add,LIVE_PACKAGES,macrofusion)
@$(call add,LIVE_PACKAGES,qtfm openssh-clients rsync usbutils)
distro/live-blender: distro/.live-games
distro/live-blender: distro/.live-games
use/live/runapp
@$(call add,LIVE_PACKAGES,blender)
@$(call set,LIVE_RUNAPP_BINARY,blender)
@$(call try,HOMEPAGE,http://blender.com/)
...
...
conf.d/mixin-alt-server.mk
View file @
46653cb6
mixin/alt-server: server_groups = $(addprefix centaurus/,\
10-alterator 20-server-apps 50-freeipa 70-dev 901-net-if-mgt \
sambaDC buildsystem dhcp-server-a diag-tools dns-server-a ftp-server-a \
mail-server-a owncloud
domain-server
freeipa-client nm-daemon \
mail-server-a owncloud freeipa-client nm-daemon \
systemd-networkd openuds openuds-tunnel admc)
mixin/alt-server: server_main_kmodules = bcmwl ch34x dm-secdel drbd9 drm-ancient \
...
...
conf.d/mixin-basealt.mk
View file @
46653cb6
# shared across all supported arches, can be complemented per arch
mixin/alt-workstation-install: workstation_groups = $(addprefix workstation/,\
10-office 20-networking 30-multimedia 40-virtualization
50-publishing
\
10-office 20-networking 30-multimedia 40-virtualization \
raccess agents emulators ganttproject gnome-peer-to-peer graphics-editing \
libreoffice mate-usershare pidgin scanning scribus \
sound-editing thunderbird freeipa-client gpolicy)
...
...
conf.d/mixin.mk
View file @
46653cb6
...
...
@@ -54,6 +54,7 @@ endif
mixin/regular-desktop: +alsa +nm-native \
use/x11/xorg use/xdg-user-dirs use/l10n \
use/fonts/otf/adobe use/fonts/otf/mozilla use/branding/notes
@$(call set,LOCALES,en_US ru_RU pt_BR)
@$(call add,THE_PACKAGES,pam-limits-desktop beesu polkit dvd+rw-tools)
@$(call add,THE_PACKAGES,polkit-rule-admin-root)
@$(call add,THE_BRANDING,alterator graphics indexhtml)
...
...
conf.d/regular-vm.mk
View file @
46653cb6
...
...
@@ -41,10 +41,11 @@ endif
mixin/vm-archdep-x11: mixin/vm-archdep +vmguest; @:
mixin/regular-vm-base: use/firmware use/ntp/chrony use/repo \
use/services/lvm2-disable
use/services/lvm2-disable
use/wireless
ifneq (,$(filter-out i586 x86_64,$(ARCH)))
@$(call add,DEFAULT_SERVICES_DISABLE,multipathd)
endif
@$(call add,DEFAULT_SERVICES_ENABLE,sshd)
@$(call add,THE_PACKAGES,bash-completion mc update-kernel)
@$(call add,THE_PACKAGES,vim-console)
@$(call add,KMODULES,staging)
...
...
@@ -56,23 +57,14 @@ mixin/regular-vm-jeos: mixin/regular-vm-base use/deflogin/root \
@$(call add,DEFAULT_SERVICES_ENABLE,getty@tty1 livecd-net-eth)
mixin/regular-vm-x11:: mixin/regular-vm-base mixin/regular-x11 \
mixin/regular-desktop use/oem
+wireless
; @:
mixin/regular-desktop use/oem
/vnc
; @:
ifeq (,$(filter-out riscv64,$(ARCH)))
mixin/regular-vm-x11:: use/oem/vnc; @:
endif
vm/.regular-desktop:: vm/systemd mixin/regular-vm-x11 \
vm/.regular-desktop: vm/systemd mixin/regular-vm-x11 \
+systemd +systemd-optimal +plymouth
@$(call add,THE_PACKAGES,bluez)
@$(call add,THE_PACKAGES,glmark2 glmark2-es2)
@$(call add,DEFAULT_SERVICES_ENABLE,bluetoothd)
ifeq (,$(filter-out armh aarch64,$(ARCH)))
vm/.regular-desktop::
@$(call add,THE_PACKAGES,xorg-96dpi)
@$(call add,THE_LISTS,remote-access)
@$(call try,VM_SIZE,6442450944)
endif
vm/.regular-desktop-sysv: vm/bare mixin/regular-vm-x11 use/x11/gdm2.20 \
use/init/sysv/polkit +power; @:
...
...
@@ -105,11 +97,15 @@ vm/regular-gnome3: vm/.regular-gtk mixin/regular-gnome3 mixin/vm-archdep-x11
vm/regular-lxde: vm/.regular-gtk mixin/regular-lxde mixin/vm-archdep-x11; @:
vm/regular-mate: vm/.regular-gtk mixin/mate-base mixin/vm-archdep-x11
vm/regular-mate: vm/.regular-gtk mixin/mate-base mixin/vm-archdep-x11; @:
ifeq (,$(filter-out mipsel riscv64,$(ARCH)))
@$(call add,THE_PACKAGES,mate-reduced-resource)
endif
vm/regular-xfce: vm/.regular-gtk mixin/regular-xfce mixin/vm-archdep-x11
vm/regular-xfce: vm/.regular-gtk mixin/regular-xfce mixin/vm-archdep-x11; @:
ifeq (,$(filter-out mipsel riscv64,$(ARCH)))
@$(call add,THE_PACKAGES,xfce-reduced-resource)
endif
vm/regular-kde5: vm/.regular-gtk mixin/regular-kde5 mixin/vm-archdep-x11
@$(call set,VM_SIZE,7516192768)
...
...
conf.d/server-v.mk
View file @
46653cb6
...
...
@@ -142,7 +142,7 @@ endif
@$(call add,DEFAULT_SERVICES_DISABLE,ahttpd alteratord)
@$(call add,DEFAULT_SERVICES_ENABLE,pve-manager pve-cluster pveproxy pvedaemon pvestatd \
pve-firewall pvefw-logger pve-guests pve-ha-crm pve-ha-lrm spiceproxy \
lxc lxcfs lxc-net lxc-monitord qmeventd pvescheduler)
lxc lxcfs lxc-net lxc-monitord qmeventd pvescheduler
pve-lxc-syscalld
)
@$(call add,SERVICES_ENABLE,multipathd)
# @$(call add,MAIN_GROUPS,server-v/141-cockpit $(cockpit))
...
...
features.in/b
ootloader/rootfs
/image-scripts.d/50-bootargs
→
features.in/b
uild-vm
/image-scripts.d/50-bootargs
View file @
46653cb6
File moved
features.in/deflogin/config.mk
View file @
46653cb6
...
...
@@ -7,15 +7,18 @@ use/deflogin:
@$(call xport,USERS)
@$(call xport,GROUPS)
@$(call xport,SPEC_USER)
@$(call xport,LIVE_USER)
# some presets
# USERS variable chunk format is "login:passwd:admin:sudo"
# GROUPS are just stashed there to include USERS logins created
# basic livecd: root
and altlinux users with no password at all
# basic livecd: root
with no password, live user is created at startup
use/deflogin/live: use/deflogin
@$(call set,ROOTPW_EMPTY,1)
@$(call add,USERS,altlinux::1:1)
@$(call try,LIVE_USER,altlinux)
@$(call add,LIVE_PACKAGES,livecd-user)
@$(call add,DEFAULT_SERVICES_ENABLE,livecd-user)
# real thing: some control added
use/deflogin/desktop: use/deflogin/live \
...
...
features.in/deflogin/live/image-scripts.d/50-livecd-user
0 → 100755
View file @
46653cb6
#!/bin/sh -efu
# setup settings for live user
[
-f
/etc/sysconfig/livecd-user.conf
]
||
exit
0
cat
>
/etc/sysconfig/livecd-user.conf
<<
EOF
LIVECD_LOGIN="
${
GLOBAL_LIVE_USER
:-}
"
LIVECD_GROUPS="
${
GLOBAL_GROUPS
:-}
"
LIVECD_ADMIN=1
LIVECD_SUDO=1
EOF
features.in/dev/live/image-scripts.d/51-hasher
View file @
46653cb6
...
...
@@ -28,196 +28,4 @@ followed by ${white}service livecd-tmpfs restart${gray} to reconfigure tmpfs
EOH
EOF
# predefined passwordless livecd user
USER
=
"altlinux"
if
!
id
"
$USER
"
>
&/dev/null
;
then
echo
"No such user '
$USER
'"
>
&2
exit
fi
# ~
HOME
=
"/home/
$USER
"
install
-dm750
-o
"
$USER
"
-g
"
$USER
"
"
$HOME
"
# http://altlinux.org/tmpfs
TMP
=
"/tmp/.private/
$USER
"
# we honestly don't know much more
if
type
-t
git
&&
type
-t
su
;
then
su -
-c
"git config --global user.email
$USER
@localhost"
"
$USER
"
su -
-c
"git config --global user.name 'live builder'"
"
$USER
"
fi
>
&/dev/null
# developer should feel comfortable, eh? ;-)
ZSHELL
=
"/bin/zsh"
if
[
-x
"
$ZSHELL
"
]
;
then
chsh
-s
"
$ZSHELL
"
"
$USER
"
install
-m644
-o
"
$USER
"
-g
"
$USER
"
/dev/null
"
$HOME
/.zshrc"
cat
>>
"
$HOME
/.zsh_history"
<<-
EOF
git clone git://git.altlinux.org/gears/m/mkimage-profiles.git && cd mkimage-profiles && make help/distro
make -C /usr/share/mkimage-profiles grub.iso
git clone git://git.altlinux.org/gears/h/hello.git && cd hello && gear-hsh
EOF
fi
if
type
-t
screen
;
then
cat
>>
"
$HOME
/.screenrc"
<<-
EOF
caption always "%{+b rk}%H%{gk} |%c %{yk}%d.%m.%Y | %72=Load: %l %{wk}"
defscrollback 1000
EOF
fi
>
&/dev/null
cat
>>
"
$HOME
/.profile"
<<
EOF
alias l='ls -l'
alias m='cd /usr/share/mkimage-profiles'
clear
cat << EOH
Welcome to live builder environment!
Here are some ALT package/image build tools prepared for you:
*
${
white
}
gear
${
gray
}
(1) -- see
${
cyan
}
http://en.altlinux.org/gear
${
gray
}
;
*
${
white
}
hsh
${
gray
}
(1) -- see
${
cyan
}
http://en.altlinux.org/hasher
${
gray
}
;
*
${
white
}
mkimage
${
gray
}
-- see
${
cyan
}
http://en.altlinux.org/mkimage
${
gray
}
;
*
${
white
}
mkimage-profiles
${
gray
}
described in Russian at
${
cyan
}
http://altlinux.org/m-p
${
gray
}
Examples (use right/middle mouse button to paste; see ~/hasher/repo/):
*
${
white
}
git clone git://git.altlinux.org/gears/h/hello.git && cd hello && gear-hsh
${
gray
}
*
${
white
}
make -C /usr/share/mkimage-profiles grub.iso
${
gray
}
EOH
EOF
# rpm
sed
-i
'/^%_tmppath.*tmp$/d'
"
$HOME
/.rpmmacros"
cat
<<
EOF
>> "
$HOME
/.rpmmacros"
%packager Unknown <nobody@altlinux.org>
%_target_cpu
$ARCH
%_tmppath
$TMP
%_sourcedir %{_topsrcdir}/SOURCES/%name
EOF
# hasher
WORKDIR
=
"
$TMP
/hasher"
ln
-s
"
$WORKDIR
"
"
$HOME
/hasher"
mkdir
"
$HOME
/.hasher"
cat
>>
"
$HOME
/.hasher/config"
<<
EOF
packager="\
$(
rpm
--eval
%packager
)
"
def_target=
$ARCH
export GCC_USE_CCACHE=1
mkdir -p "
$WORKDIR
"
EOF
# create apt.conf for supported ARCHES and BRANCHES
# use format: $BRANCH-$ARCH
create_apt_conf
()
{
local
PORTS
=
local
SIGN
=
local
BRANCH
=
$(
echo
"
$1
"
|
cut
-f1
-d
'-'
)
local
ARCH
=
$(
echo
"
$1
"
|
cut
-f2
-d
'-'
)
local
EXT_BRANCH
=
$(
echo
"
$1
"
|
cut
-f3
-d
'-'
)
[
-n
"
$ARCH
"
]
||
[
-n
"
$BRANCH
"
]
||
exit
1
[
-z
"
$EXT_BRANCH
"
]
||
[
"
$EXT_BRANCH
"
=
port
]
||
exit
1
[
"
$EXT_BRANCH
"
=
port
]
&&
PORTS
=
1
if
[
"
$BRANCH
"
=
sisyphus
]
;
then
BRANCH_PATH
=
Sisyphus
SIGN
=
'[alt]'
else
BRANCH_PATH
=
$BRANCH
/branch
SIGN
=
"[
$BRANCH
]"
fi
if
[
-n
"
$PORTS
"
]
;
then
if
[
"
$BRANCH
"
=
sisyphus
]
;
then
BRANCH_PATH
=
ports/
$ARCH
/Sisyphus
else
BRANCH_PATH
=
ports/
$ARCH
/
$BRANCH
fi
SIGN
=
"[
$BRANCH
-
$ARCH
]"
fi
mkdir
-p
"
$HOME
/apt/lists/partial"
\
"
$HOME
/apt/cache/
$BRANCH
/
$ARCH
/archives/partial"
\
"
$HOME
/apt/cache/
$BRANCH
/noarch/archives/partial"
cat
>
"
$HOME
/apt/apt.conf.
$BRANCH
.
$ARCH
"
<<
EOF
Dir::Etc::main "/dev/null";
Dir::Etc::SourceParts "/var/empty";
Dir::Etc::SourceList "
$HOME
/apt/sources.list.
$BRANCH
.
$ARCH
";
Dir::State::lists "
$HOME
/apt/lists/";
Dir::Cache "
$HOME
/apt/cache/
$BRANCH
/
$ARCH
";
;Debug::pkgMarkInstall "true";
;Debug::pkgProblemResolver "true";
EOF
cat
>
"
$HOME
/apt/sources.list.
$BRANCH
.
$ARCH
"
<<
EOF
rpm-dir file://
$HOME
/hasher/repo
$ARCH
hasher
# Official repo (slow)
#rpm
$SIGN
http://ftp.altlinux.org/pub/distributions/ALTLinux/
$BRANCH_PATH
$ARCH
classic
#rpm
$SIGN
http://ftp.altlinux.org/pub/distributions/ALTLinux/
$BRANCH_PATH
noarch classic
# Yandex mirror (fast)
rpm
$SIGN
http://mirror.yandex.ru/altlinux/
$BRANCH_PATH
$ARCH
classic
rpm
$SIGN
http://mirror.yandex.ru/altlinux/
$BRANCH_PATH
noarch classic
EOF
}
target_apt_confs
=
"
sisyphus-x86_64
sisyphus-i586
sisyphus-aarch64
sisyphus-armh
sisyphus-ppc64le
sisyphus-mipsel-port
sisyphus-riscv64-port
p10-x86_64
p10-i586
p10-aarch64
p10-armh
p10-ppc64le
p9-x86_64
p9-i586
p9-aarch64
p9-armh
p9-ppc64le
p9-mipsel-port
"
for
target_apt_conf
in
$target_apt_confs
;
do
create_apt_conf
"
$target_apt_conf
"
done
# setup mkimage-profiles settings
# add mkimage-profiles settings
mkdir
-p
$HOME
/.mkimage
cat
>
$HOME
/.mkimage/profiles.mk
<<
EOF
ifneq (,\
$(
BRANCH
)
)
APTCONF = ~/apt/apt.conf.\
$(
BRANCH
)
.\
$(
ARCH
)
IMAGEDIR = ~/out/\
$(
BRANCH
)
/\
$(
shell
date
+%Y%m%d
)
else
APTCONF = ~/apt/apt.conf.sisyphus.\
$(
ARCH
)
IMAGEDIR = ~/out/sisyphus/\
$(
shell
date
+%Y%m%d
)
endif
CLEAN = 1
DEBUG = 1
REPORT = 1
NO_SYMLINK = 1
#NICE = 1
#QUIET = 1
EOF
# fix owner:group
chown
$USER
:
$USER
-R
"
$HOME
"
# online repo needs network not isolation
echo
"export share_network=1"
>>
/etc/profile.d/hasher.sh
chmod
+x /etc/profile.d/hasher.sh
# squashfs-tools 4.3+
echo
"allowed_mountpoints=/proc"
>>
/etc/hasher-priv/system
# requisite
hasher-useradd
"
$USER
"
# predefined passwordless livecd user is created with livecd-user
features.in/efi/config.mk
View file @
46653cb6
...
...
@@ -18,7 +18,6 @@ ifeq (distro,$(IMAGE_CLASS))
@$(call add,STAGE1_KCONFIG,EFI EFI_PARTITION EFIVAR_FS)
@$(call add,EFI_BOOTARGS,$$(STAGE2_BOOTARGS))
ifeq (x86_64,$(ARCH))
@$(call add,RESCUE_PACKAGES,refind $$(EFI_SHELL) $$(EFI_BOOTLOADER))
@$(call add,THE_PACKAGES,$$(EFI_SHELL))
endif
endif
...
...
features.in/grub/README
View file @
46653cb6
...
...
@@ -17,7 +17,9 @@
* BOOTVGA -- видеорежим, запрашиваемый у ядра (параметр vga=);
* GRUB_UI -- тип интерфейса (если указан gfxboot, то графический,
иначе текстовый);
* GRUB_CFG -- дополнительные кусочки конфигурации (например, live_rw).
* GRUB_CFG -- дополнительные кусочки конфигурации (например, live_rw);
* GRUBTHEME -- имя темы grub, если не задана, то получает значение BRANDING
за вычетом традиционной приставки alt-).
Здесь производится первичная обработка конфигурационных данных,
окончательно проверяемых и используемых уже в инструментальном чруте.
...
...
features.in/grub/cfg.in/86lang.cfg
View file @
46653cb6
submenu $"Change language (press F2)" --hotkey 'f2' --id 'lang' {
insmod regexp
for langstr in "ru_RU=Russian" "en_US=English" "pt_BR=Portuguese" "uk_UA=Ukrainian"; do
for langstr in \
"ru_RU=Russian" \
"en_US=English" \
"pt_BR=Portuguese" \
"uk_UA=Ukrainian" \
; do
regexp -s 2:langname -s 1:langcode '(.*)=(.*)' "$langstr"
for locale in @LOCALES@; do
if [ "$locale" != "$langcode" ]; then continue; fi
menuentry "${langname}" "$langcode" {
lang="$2"
export lang
configfile ${prefix}/grub.cfg
}
done
done
menuentry $"Return to the Main menu" {
configfile ${prefix}/grub.cfg
}
...
...
features.in/grub/generate.mk
View file @
46653cb6
...
...
@@ -25,9 +25,11 @@ ifneq (,$(GRUB_UI))
GRUB_CFG := $(GRUB_CFG) gfxterm
endif
ifneq (,$(LOCALE))
ifneq (,$(LOCALES))
ifneq ($(words $(LOCALES)),1)
GRUB_CFG := $(GRUB_CFG) lang
endif
endif
ifneq (,$(KFLAVOURS))
ifneq ($(words $(KFLAVOURS)),1)
...
...
@@ -103,7 +105,10 @@ bootargs: clean
sed -i "s, lang=.lang,,g" $(DSTCFGS); \
fi; \
sed -i "/lang=@LOCALE@/d" $(DSTCFGS)
GRUBTHEME=$(GRUBTHEME); \
@if [ -n "$(LOCALES)" ]; then \
sed -i "s,@LOCALES@,$(LOCALES),g" $(DSTCFGS); \
fi
@GRUBTHEME=$(GRUBTHEME); \
[ -n "$$GRUBTHEME" ] || GRUBTHEME=$$(cut -d "-" -f2 <<< $(BRANDING)); \
sed -i "s,@grubtheme@,$$GRUBTHEME,g" $(DSTCFGS)
@sed -i "s,@initrd@,initrd," $(DSTCFGS)
...
...
features.in/init/live/image-scripts.d/50-var-run-fix
deleted
100755 → 0
View file @
c56ddd19
#!/bin/sh
# this was a bunch of dirty complaints
sed
-i
's,/var/run,/run,'
/
{
etc,lib
}
/tmpfiles.d/
*
.conf
||
:
[
!
-L
/var/run
]
&&
rm
-r
/var/run
&&
ln
-s
../run /var/run
[
!
-L
/var/lock
]
&&
rm
-r
/var/lock
&&
ln
-s
../run/lock /var/lock
:
features.in/init/rescue/image-scripts.d/50-var-run-fix
View file @
46653cb6
#!/bin/sh
# this was a bunch of dirty complaints
sed
-i
's,/var/run,/run,'
/
{
etc,lib
}
/tmpfiles.d/
*
.conf
||
:
[
!
-L
/var/run
]
&&
rm
-r
/var/run
&&
ln
-s
../run /var/run
[
!
-L
/var/lock
]
&&
rm
-r
/var/lock
&&
ln
-s
../run/lock /var/lock
...
...
features.in/init/rootfs/image-scripts.d/50-var-run-fix
View file @
46653cb6
#!/bin/sh
# this was a bunch of dirty complaints
sed
-i
's,/var/run,/run,'
/
{
etc,lib
}
/tmpfiles.d/
*
.conf
||
:
[
!
-L
/var/run
]
&&
rm
-r
/var/run
&&
ln
-s
../run /var/run
[
!
-L
/var/lock
]
&&
rm
-r
/var/lock
&&
ln
-s
../run/lock /var/lock
...
...
features.in/init/stage2/image-scripts.d/91-systemd
deleted
100755 → 0
View file @
c56ddd19
#!/bin/sh
# the part below relates to systemd as init specifically
rpm
-q
systemd-sysvinit
||
exit
0
sub
()
{
local
file
=
"
$1
"
shift
for
i
in
"
$@
"
;
do
grep
-q
"^
$i
"
"
$file
"
||
echo
"
$i
"
>>
"
$file
"
done
}
# aufs2 root is rw in reality; but don't bother if there's a record already
grep
-q
'[[:space:]]/[[:space:]]'
/etc/fstab
||
sub /etc/fstab
'/dev/root / auto defaults 0 0'
features.in/install2/config.mk
View file @
46653cb6
...
...
@@ -17,6 +17,7 @@ use/install2: use/stage2 sub/stage2@install2 use/metadata \
@$(call xport,BASE_BOOTLOADER)
@$(call xport,INSTALL2_CLEANUP_PACKAGES)
@$(call xport,INSTALL2_CLEANUP_KDRIVERS)
@$(call add,INSTALL2_PACKAGES,lsof)
# doesn't use/install2/fs on purpose (at least so far)
use/install2/full: \
...
...
features.in/kernel/config.mk
View file @
46653cb6
...
...
@@ -78,6 +78,7 @@ ifeq (,$(filter-out aarch64 armh riscv64,$(ARCH)))
@$(call add,VM_INITRDMODULES,drivers/pwm drivers/regulator)
@$(call add,VM_INITRDMODULES,drivers/i2c)
@$(call add,VM_INITRDMODULES,drivers/mfd)
@$(call add,VM_INITRDMODULES,drivers/spi)
@$(call add,VM_INITRDMODULES,drivers/clk)
@$(call add,VM_INITRDMODULES,drivers/gpu/drm/bridge)
@$(call add,VM_INITRDMODULES,drivers/gpu/drm/rockchip)
...
...
features.in/l10n/install2/image-scripts.d/50-l10n-sysconfig
0 → 100755
View file @
46653cb6
#!/bin/bash
langlist
=
"/etc/alterator/sysconfig/lang/langlist.all"
langlist_temp
=
"
$langlist
"
.temp
locales
=
"
$GLOBAL_LOCALES
"
[
-f
"
$langlist
"
]
||
exit
0
[
-n
"
$locales
"
]
||
exit
0
rm
-f
"
$langlist_temp
"
for
lang
in
$locales
;
do
grep
-q
"
$lang
"
"
$langlist
"
&&
grep
"
$lang
"
"
$langlist
"
>>
"
$langlist_temp
"
done
mv
"
$langlist_temp
"
"
$langlist
"
features.in/l10n/rootfs/image-scripts.d/50-l10n-sysconfig
0 → 100755
View file @
46653cb6
#!/bin/bash
langlist
=
"/etc/alterator/sysconfig/lang/langlist.all"
langlist_temp
=
"
$langlist
"
.temp
locales
=
"
$GLOBAL_LOCALES
"
[
-f
"
$langlist
"
]
||
exit
0
[
-n
"
$locales
"
]
||
exit
0
rm
-f
"
$langlist_temp
"
for
lang
in
$locales
;
do
grep
-q
"
$lang
"
"
$langlist
"
&&
grep
"
$lang
"
"
$langlist
"
>>
"
$langlist_temp
"
done
mv
"
$langlist_temp
"
"
$langlist
"
features.in/live/live/image-scripts.d/10-live-hooks
View file @
46653cb6
...
...
@@ -2,4 +2,4 @@
# if we're configured for running live hooks,
# there should be a place for them either
chkconfig livecd-run-hooks on
>
&/dev/null
&&
mkdir
/live.hooks
||
:
chkconfig livecd-run-hooks on
>
&/dev/null
||
:
features.in/plymouth/config.mk
View file @
46653cb6
...
...
@@ -17,7 +17,7 @@ use/plymouth:
ifeq (distro,$(IMAGE_CLASS))
use/plymouth/stage2: use/plymouth use/branding \
use/stage2/kms
@$(call add,STAGE1_PACKAGES
_REGEXP
,make-initrd-plymouth)
@$(call add,STAGE1_PACKAGES,make-initrd-plymouth)
@$(call add,STAGE1_BRANDING,bootsplash graphics)
@$(call add,STAGE2_BRANDING,bootsplash graphics)
@$(call add,STAGE2_BOOTARGS,quiet splash)
...
...
@@ -25,26 +25,16 @@ else
use/plymouth/stage2: use/plymouth use/branding; @:
endif
ifeq (vm,$(IMAGE_CLASS))
use/plymouth/vm: use/plymouth use/branding use/kernel/initrd-setup
@$(call add,VM_INITRDFEATURES,plymouth)
@$(call add,THE_BRANDING,bootsplash graphics)
@$(call add,THE_PACKAGES,make-initrd-plymouth)
@$(call add,BASE_BOOTARGS,quiet)
@$(call add,THE_KMODULES,drm)
else
use/plymouth/vm: use/plymouth; @:
endif
use/plymouth/base: use/plymouth/stage2 use/plymouth/vm \
use/drm/full; @:
use/plymouth/base: use/plymouth/stage2 use/drm/full; @:
ifeq (distro,$(IMAGE_CLASS))
@$(call add,INSTALL2_PACKAGES,installer-feature-setup-plymouth)
endif
@$(call add,BASE_PACKAGES_REGEXP,make-initrd-plymouth cpio)
@$(call add,THE_BRANDING,bootsplash)
@$(call add,THE_PACKAGES,make-initrd-plymouth)
@$(call add,BASE_BOOTARGS,splash)
@$(call add,THE_BRANDING,bootsplash graphics)
@$(call add,THE_PACKAGES,make-initrd-plymouth cpio)
ifeq (vm,$(IMAGE_CLASS))
@$(call add,VM_INITRDFEATURES,plymouth)
@$(call add,BASE_BOOTARGS,quiet splash)
endif
use/plymouth/full: use/plymouth/stage2 use/plymouth/base; @:
...
...
features.in/rescue/rescue/image-scripts.d/60-apt
deleted
100755 → 0
View file @
c56ddd19
#!/bin/sh
# enable online repository even more unconditionally
sed
-i
"s,^#
\(
rpm .* http.*
\)
,
\1
,"
"/etc/apt/sources.list.d/alt.list"
||
echo
"** warning: unable to enable online repos"
>
&2
features.in/sound/config.mk
View file @
46653cb6
...
...
@@ -18,7 +18,7 @@ use/sound/pulse: use/sound
use/sound/pipewire: use/sound
@$(call set,THE_SOUND,sound/pipewire)
@$(call add,DEFAULT_SYSTEMD_USER_SERVICES_ENABLE,pipewire pipewire-pulse
pipewire-media-session
)
@$(call add,DEFAULT_SYSTEMD_USER_SERVICES_ENABLE,pipewire pipewire-pulse)
ifeq (sisyphus,$(BRANCH))
@$(call add,THE_PACKAGES,wireplumber)
@$(call add,DEFAULT_SYSTEMD_USER_SERVICES_ENABLE,wireplumber)
...
...
features.in/wireless/config.mk
View file @
46653cb6
...
...
@@ -2,6 +2,7 @@
use/wireless: use/kernel/wireless
@$(call add_feature)
@$(call add,THE_PACKAGES,firmware-wireless-regdb)
@$(call add,THE_LISTS,tools/wireless)
use/wireless/full: use/wireless; @:
...
...
features.in/x11-autologin/rootfs/image-scripts.d/40-x11-autologin
View file @
46653cb6
...
...
@@ -7,6 +7,10 @@ if [ ! -x /usr/bin/X ]; then
fi
USER
=
altlinux
if
!
id
"
$USER
"
>
&/dev/null
;
then
echo
"SKIP autologin:
$USER
does not exist"
exit
0
fi
add_nopasswdlogin_group
()
{
...
...
pkg.in/groups/centaurus/domain-server.directory
deleted
100644 → 0
View file @
c56ddd19
[Desktop Entry]
Encoding=UTF-8
Type=Directory
Name=ALT Domain Server (ldap+kerberos)
X-Alterator-PackageList=centaurus/domain-server
X-Alterator-Parent=centaurus/10-alterator
X-Alterator-Required=no
Name[ru_RU]=Сервер Домена LDAP и Kerberos
pkg.in/groups/workstation/50-publishing.directory
deleted
100644 → 0
View file @
c56ddd19
[Desktop Entry]
Encoding=UTF-8
Type=Directory
Name=Publishing
Name[ru_RU]=Издательство
X-Alterator-Required=no
Comment=Desktop Publishing applications
Comment[ru_RU]=Приложения для издательства
pkg.in/groups/workstation/freecad.directory
View file @
46653cb6
...
...
@@ -5,4 +5,3 @@ Name=FreeCAD system
Name[ru_RU]=САПР (FreeCAD)
X-Alterator-PackageList=workstation/freecad
X-Alterator-Required=no
X-Alterator-Parent=workstation/50-publishing
pkg.in/groups/workstation/graphics-editing.directory
View file @
46653cb6
...
...
@@ -4,6 +4,6 @@ Type=Directory
Name=Graphics editing
Name[ru_RU]=Обработка графики
X-Alterator-PackageList=workstation/graphics-editing
X-Alterator-Required=
no
X-Alterator-Required=
yes
X-Alterator-Parent=workstation/30-multimedia
Categories=KDE;KDE4;GNOME;XFCE;
pkg.in/groups/workstation/qgis.directory
deleted
100644 → 0
View file @
c56ddd19
[Desktop Entry]
Encoding=UTF-8
Type=Directory
Name=QGIS geoinformation system
Name[ru_RU]=Геоинформационная система QGIS
X-Alterator-PackageList=workstation/qgis
X-Alterator-Parent=workstation/50-publishing
pkg.in/groups/workstation/scribus.directory
View file @
46653cb6
...
...
@@ -5,5 +5,3 @@ Name=Scribus desktop publishing system
Name[ru_RU]=Издательская система (Scribus)
X-Alterator-PackageList=workstation/scribus
X-Alterator-Required=no
X-Alterator-Parent=workstation/50-publishing
Categories=KDE;KDE4;GNOME;XFCE;
pkg.in/lists/centaurus/admc
View file @
46653cb6
...
...
@@ -6,3 +6,4 @@ admx-basealt
samba-dc-common
admx-firefox
admx-chromium
gpui
pkg.in/lists/centaurus/disk-dvd
View file @
46653cb6
...
...
@@ -77,6 +77,9 @@ mariadb@META
php8.0-soap
php8.0-calendar
php8.0-sockets
php8.0-pgsql
php8.0-ldap
xprobe2
...
...
@@ -110,3 +113,4 @@ seavgabios
haproxy
keepalived
eepm
eepm-yum
pkg.in/lists/centaurus/domain-server
deleted
100644 → 0
View file @
c56ddd19
samba-common
ldap-user-tools
samba
samba-client
alt-domain-server
bind
#systemd-timesyncd- systemd-networkd-
samba-common-tools
samba-libs
alterator-openldap
alterator-kdc
###installer-feature-resolver-bind-stage3
autofs
avahi-daemon
avahi-tools
pkg.in/lists/centaurus/mate
View file @
46653cb6
...
...
@@ -178,7 +178,7 @@ NetworkManager-openvpn-gtk
NetworkManager-pptp-gtk
NetworkManager-vpnc-gtk
# strongswan (for NM-l2tp) conflicts with pki-tools (for freeipa-server)
#
NetworkManager-l2tp-gtk
NetworkManager-l2tp-gtk
NetworkManager-sstp-gtk@X86
usb-modeswitch
autofs
...
...
pkg.in/lists/slinux/net-base
View file @
46653cb6
thunderbird
@!riscv64
thunderbird
pidgin
pidgin-libnotify
...
...
@@ -7,15 +7,4 @@ rdesktop
remmina
remmina-plugins
claws-mail@riscv64
claws-mail-plugin-attachwarner@riscv64
claws-mail-plugin-notification@riscv64
claws-mail-plugin-pgpcore@riscv64
claws-mail-plugin-pgpinline@riscv64
claws-mail-plugin-pgpmime@riscv64
claws-mail-plugin-rssyl@riscv64
claws-mail-plugin-spamassassin@riscv64
claws-mail-plugin-vcalendar@riscv64
claws-mail-tools@riscv64
telegram-desktop@E2K
pkg.in/lists/tagged/desktop+cinnamon
View file @
46653cb6
cinnamon-minimal@META
cinnamon-default@META
cinnamon-regular@META
installer-feature-xdg-user-dirs
pkg.in/lists/tagged/desktop+live
View file @
46653cb6
...
...
@@ -3,7 +3,6 @@ xinit
xinitrc
livecd-setlocale
livecd-timezone
installer-feature-runlevel5-stage3
os-prober
sudo
su
pkg.in/lists/tools/wireless
View file @
46653cb6
wireless-tools
ath_info
rfkill
crda@X86
iw
pkg.in/lists/virt/base.pkgs
View file @
46653cb6
...
...
@@ -53,8 +53,15 @@ quota
mailx
nano
mc
installer-feature-repo-add
ipmitool
udev-rules-ioschedulers
alt-issue-server
systemd-settings-disable-kill-user-processes
ca-certificates-digital.gov.ru
isbc-pkcs11
libjcpkcs11
opensc
pam_pkcs11
pcsc-lite
pcsc-lite-ccid
pcsc-tools
pkg.in/lists/virt/extra.pkgs
View file @
46653cb6
...
...
@@ -27,3 +27,6 @@ pcs
ansible
docker-compose
etcd
inxi
dmidecode
sssd-ldap
pkg.in/lists/workstation/ganttproject
View file @
46653cb6
java-1
1
-openjdk@!E2K,mipsel
java-1
7
-openjdk@!E2K,mipsel
java-1.8.0-openjdk@E2K,mipsel
ganttproject
pkg.in/lists/workstation/libreoffice
View file @
46653cb6
...
...
@@ -7,7 +7,7 @@ LibreOffice@E2K
LibreOffice-langpack-ru@E2K
LibreOffice-common@E2K
java-1
1
-openjdk@!E2K,mipsel
java-1
7
-openjdk@!E2K,mipsel
java-1.8.0-openjdk@E2K,mipsel
libreoffice-languagetool@!mipsel
libcmis
...
...
pkg.in/lists/workstation/libreoffice-latest
View file @
46653cb6
...
...
@@ -3,7 +3,7 @@ LibreOffice-langpack-ru
LibreOffice-gtk3
LibreOffice-common
java-1
1
-openjdk@!E2K,mipsel
java-1
7
-openjdk@!E2K,mipsel
java-1.8.0-openjdk@E2K,mipsel
libreoffice-languagetool@!mipsel
libcmis
...
...
pkg.in/lists/workstation/qgis
deleted
100644 → 0
View file @
c56ddd19
qgis
#qgis-grass
qgis-python
pkg.in/lists/workstation/scribus
View file @
46653cb6
scribus
scribus-doc
pkg.in/lists/workstation/the.pkgs
View file @
46653cb6
...
...
@@ -26,6 +26,9 @@ grub-customizer@X86
xorg-conf-libinput-touchpad
glxgears
glxinfo
# Support Chinese characters
fonts-bitmap-wqy
...
...
pkg.in/profiles/centaurus-10-server.directory
View file @
46653cb6
...
...
@@ -2,4 +2,4 @@
Type=Directory
Name=Office Server
Name[ru_RU]=Офисный сервер
X-Alterator-Groups=centaurus/dhcp-server-a centaurus/dns-server-a centaurus/ftp-server-a centaurus/mail-server-a centaurus/mysql-server-a centaurus/netinst centaurus/http-server centaurus/dns-server centaurus/bacula-server centaurus/kvm-server centaurus/xorg centaurus/samba centaurus/
domain-server centaurus/
alterator centaurus/mate centaurus/office centaurus/cups centaurus/nm-daemon
X-Alterator-Groups=centaurus/dhcp-server-a centaurus/dns-server-a centaurus/ftp-server-a centaurus/mail-server-a centaurus/mysql-server-a centaurus/netinst centaurus/http-server centaurus/dns-server centaurus/bacula-server centaurus/kvm-server centaurus/xorg centaurus/samba centaurus/alterator centaurus/mate centaurus/office centaurus/cups centaurus/nm-daemon
sub.in/stage2/image-scripts.d/50-udev
deleted
100755 → 0
View file @
c56ddd19
#!/bin/sh
# for udev
ln
-sf
/proc/mounts /etc/mtab
# pam_console_apply is harmful during install
find /etc/udev/rules.d/
-type
f
-print0
|
xargs
-r0
grep
-F
-Zl
pam_console_apply
--
|
xargs
-r0
rm
-fv
--
sub.in/stage2/image-scripts.d/90-cleanup-drm
deleted
100755 → 0
View file @
c56ddd19
#!/bin/sh
# don't cripple the image to be copied over
[
-x
/usr/sbin/live-install
-o
-x
/usr/sbin/livecd-install
]
&&
exit
0
# no sense in xorg-dri-* without kernel-modules-drm*
stat
/lib/modules/
*
/kernel/drivers/gpu/drm
>
&/dev/null
\
||
rm
-rf
/usr/lib
*
/X11/modules/dri/
:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment