ALT Linux Distributions development
 help / color / mirror / Atom feed
* [devel-distro] лишние ". install2-init-functions"
@ 2020-09-18 15:39 Michael Shigorin
  0 siblings, 0 replies; only message in thread
From: Michael Shigorin @ 2020-09-18 15:39 UTC (permalink / raw)
  To: devel-distro

	Здравствуйте.
Пока заметил: похоже, многие ". install2-init-functions"
в installer-* у нас являются избыточными и лишь чуточку
замедляют запуск инсталятора; пример:

---
#!/bin/sh -efu
  
. install2-init-functions

[ -z "$AUTOINSTALL" ] || exit 0

xdriver=
for d in $(cat /proc/cmdline); do
  [ -z "${d##xdriver=*}" ] || continue
  echo "Configuring Xorg server using xdriver=$xdriver"
  xdriver="${d#xdriver=}"
done

# modern xorg doesn't need that much configuration
[ -n "$xdriver" ] || exit 0

XORG_CONF="/etc/X11/xorg.conf"
xorg_conf_setup $xdriver "$XORG_CONF"
--- installer/initinstall.d/40-xorg.sh

Пока ничего с этим не делаю, но хоть отмечу.

PS на всякий: конструкции вида "a= . install2-init-functions"
являются хаком, который был изобретён после создания хака по
имени livecd-install (который немножко исхитрялся, чтобы
запустить всё нужное из хуков-хаков, в т.ч. i-f-*).

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-18 15:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-18 15:39 [devel-distro] лишние ". install2-init-functions" Michael Shigorin

ALT Linux Distributions development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-distro devel-distro/ http://lore.altlinux.org/devel-distro \
		devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com
	public-inbox-index devel-distro

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-distro


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git