mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
move variables to common
This commit is contained in:
parent
40c9347d46
commit
01ad59a658
2 changed files with 12 additions and 14 deletions
|
@ -1,19 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
# created by Tobias Powalowski <tpowa@archlinux.org>
|
# created by Tobias Powalowski <tpowa@archlinux.org>
|
||||||
_VC_NUM="$(basename ${_LOG} | sed -e 's#tty##g')"
|
|
||||||
_VC="VC${_VC_NUM}"
|
|
||||||
# install stages
|
|
||||||
_S_QUICK_SETUP="" # guided fs/format
|
|
||||||
# menu item tracker- autoselect the next item
|
|
||||||
_NEXTITEM=""
|
|
||||||
# To allow choice in script set EDITOR=""
|
|
||||||
_EDITOR=""
|
|
||||||
# programs
|
|
||||||
_LSBLK="lsblk -rpno"
|
|
||||||
_BLKID="blkid -c ${_NO_LOG}"
|
|
||||||
_FINDMNT="findmnt -vno SOURCE"
|
|
||||||
|
|
||||||
_set_title() {
|
_set_title() {
|
||||||
if [[ "${_DESTDIR}" == "/" ]]; then
|
if [[ "${_DESTDIR}" == "/" ]]; then
|
||||||
_TITLE="Archboot ${_RUNNING_ARCH} | Arch Linux Setup (System Mode) | https://archboot.com"
|
_TITLE="Archboot ${_RUNNING_ARCH} | Arch Linux Setup (System Mode) | https://archboot.com"
|
||||||
|
|
|
@ -1,8 +1,19 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
# created by Tobias Powalowski <tpowa@archlinux.org>
|
# created by Tobias Powalowski <tpowa@archlinux.org>
|
||||||
|
_VC_NUM="$(basename ${_LOG} | sed -e 's#tty##g')"
|
||||||
|
_VC="VC${_VC_NUM}"
|
||||||
|
# install stages
|
||||||
|
_S_QUICK_SETUP="" # guided fs/format
|
||||||
|
# menu item tracker- autoselect the next item
|
||||||
|
_NEXTITEM=""
|
||||||
|
# To allow choice in script set EDITOR=""
|
||||||
|
_EDITOR=""
|
||||||
|
# programs
|
||||||
|
_LSBLK="lsblk -rpno"
|
||||||
|
_BLKID="blkid -c ${_NO_LOG}"
|
||||||
|
_FINDMNT="findmnt -vno SOURCE"
|
||||||
# don't use _DESTDIR=/mnt because it's intended to mount other things there!
|
# don't use _DESTDIR=/mnt because it's intended to mount other things there!
|
||||||
|
|
||||||
# check first if bootet in archboot
|
# check first if bootet in archboot
|
||||||
if grep -qw '^archboot' /etc/hostname; then
|
if grep -qw '^archboot' /etc/hostname; then
|
||||||
_DESTDIR="/install"
|
_DESTDIR="/install"
|
||||||
|
|
Loading…
Reference in a new issue