From: Michael Shigorin <mike@altlinux.org> To: devel-distro@lists.altlinux.org Subject: [devel-distro] лишние ". install2-init-functions" Date: Fri, 18 Sep 2020 18:39:05 +0300 Message-ID: <20200918153905.GR20087@imap.altlinux.org> (raw) Здравствуйте. Пока заметил: похоже, многие ". 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
reply other threads:[~2020-09-18 15:39 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200918153905.GR20087@imap.altlinux.org \ --to=mike@altlinux.org \ --cc=devel-distro@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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