Skip to content

Commit a1039cb

Browse files
committed
Merge branch 'master' of ssh://github.com/meefik/linuxdeploy-cli
2 parents 1876ef9 + f98d79d commit a1039cb

File tree

5 files changed

+14
-34
lines changed

5 files changed

+14
-34
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Help for the parameters of the main components:
111111
Password will be assigned to the specified user.
112112
113113
--privileged-users="android messagebus"
114-
A list of users separated by a space to be added to Android groups.
114+
A list of users in a format UID:GID separated by a space to be added UID to GID.
115115
116116
```
117117

include/bootstrap/archlinux/deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pacman_install()
2727
[ -n "${packages}" ] || return 1
2828
(set -e
2929
#rm -f ${CHROOT_DIR}/var/lib/pacman/db.lck || true
30-
chroot_exec -u root pacman -Syq --overwrite --noconfirm ${packages}
30+
chroot_exec -u root pacman -Syq --overwrite="*" --noconfirm ${packages}
3131
rm -f "${CHROOT_DIR}"/var/cache/pacman/pkg/* || true
3232
exit 0)
3333
return $?

include/bootstrap/fedora/deploy.sh

+10-29
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# Linux Deploy Component
33
# (c) Anton Skshidlevsky <[email protected]>, GPLv3
44

5-
[ -n "${SUITE}" ] || SUITE="28"
5+
# 31 doesn't support while rpm2cpio in busybox doesn't support zstd
6+
[ -n "${SUITE}" ] || SUITE="30"
67

78
if [ -z "${ARCH}" ]
89
then
@@ -14,45 +15,25 @@ then
1415
esac
1516
fi
1617

17-
[ -n "${SOURCE_PATH}" ] || SOURCE_PATH="http://dl.fedoraproject.org/pub/archive/"
18+
[ -n "${SOURCE_PATH}" ] || SOURCE_PATH="http://dl.fedoraproject.org/pub/"
1819

1920
dnf_install()
2021
{
2122
local packages="$@"
2223
[ -n "${packages}" ] || return 1
2324
(set -e
24-
chroot_exec -u root dnf --nogpgcheck -y install ${packages}
25-
chroot_exec -u root dnf clean packages
25+
chroot_exec -u root dnf -y install ${packages}
2626
exit 0)
2727
return $?
2828
}
2929

30-
yum_repository()
31-
{
32-
find "${CHROOT_DIR}/etc/yum.repos.d/" -name '*.repo' | while read f; do sed -i 's/^enabled=.*/enabled=0/g' "${f}"; done
33-
local repo_file="${CHROOT_DIR}/etc/yum.repos.d/fedora-${SUITE}-${ARCH}.repo"
34-
local repo_url
35-
if [ "${ARCH}" = "i386" ]
36-
then repo_url="${SOURCE_PATH%/}/fedora-secondary/releases/${SUITE}/Everything/${ARCH}/os"
37-
else repo_url="${SOURCE_PATH%/}/fedora/linux/releases/${SUITE}/Everything/${ARCH}/os"
38-
fi
39-
echo "[fedora-${SUITE}-${ARCH}]" > "${repo_file}"
40-
echo "name=Fedora ${SUITE} - ${ARCH}" >> "${repo_file}"
41-
echo "failovermethod=priority" >> "${repo_file}"
42-
echo "baseurl=${repo_url}" >> "${repo_file}"
43-
echo "enabled=1" >> "${repo_file}"
44-
echo "metadata_expire=7d" >> "${repo_file}"
45-
echo "gpgcheck=0" >> "${repo_file}"
46-
chmod 644 "${repo_file}"
47-
}
48-
4930
do_install()
5031
{
5132
is_archive "${SOURCE_PATH}" && return 0
5233

5334
msg ":: Installing ${COMPONENT} ... "
5435

55-
local core_packages="audit-libs basesystem bash bash-completion bzip2-libs ca-certificates chkconfig coreutils cpio cracklib crypto-policies cryptsetup-libs curl cyrus-sasl-lib dbus dbus-libs device-mapper-libs dnf dnf-conf dnf-plugins-core dnf-yum elfutils-libelf elfutils-libs expat fedora-gpg-keys fedora-release fedora-repos file-libs filesystem gawk gdbm glib2 glibc glibc-common gmp gnupg2 gnutls gobject-introspection gpgme grep gzip info iptables-libs json-c keyutils-libs kmod-libs krb5-libs libacl libarchive libargon2 libassuan libattr libblkid libcap libcap-ng libcom_err libcomps libcurl libdb libdb-utils libdnf libffi libgcc libgcrypt libgpg-error libidn2 libmetalink libmodulemd libmount libnghttp2 libnsl2 libpcap libpsl libpwquality librepo libreport-filesystem libseccomp libselinux libsemanage libsepol libsigsegv libsmartcols libsolv libssh libtasn1 libtirpc libunistring libutempter libuuid libverto libxcrypt libxml2 libyaml libzstd lua-libs lz4-libs mpfr ncurses ncurses-base ncurses-libs nettle nspr nss nss-softokn nss-softokn-freebl nss-sysinit nss-util openldap openssl-libs p11-kit p11-kit-trust pam pcre pcre2 popt python3 python3-dnf python3-dnf-plugins-core python3-gobject-base python3-gpg python3-hawkey python3-iniparse python3-libcomps python3-librepo python3-libs python3-pip python3-rpm python3-setuptools python3-six python3-smartcols qrencode-libs readline rootfiles rpm rpm-build-libs rpm-libs rpm-plugin-selinux sed setup shadow-utils sqlite-libs sudo systemd systemd-libs tzdata util-linux vim-minimal which xz-libs zlib"
36+
local core_packages="acl alternatives audit-libs basesystem bash brotli bzip2-libs ca-certificates coreutils coreutils-common cracklib crypto-policies cryptsetup-libs curl cyrus-sasl-lib dbus dbus-broker dbus-common device-mapper device-mapper-libs dnf dnf-data dnf-yum elfutils-default-yama-scope elfutils-libelf elfutils-libs expat fedora-gpg-keys fedora-release fedora-release-common fedora-repos file-libs filesystem findutils gawk gdbm-libs glib2 glibc glibc-common glibc-minimal-langpack gmp gnupg2 gnutls gpgme grep gzip ima-evm-utils iptables-libs json-c keyutils-libs kmod-libs krb5-libs libacl libarchive libargon2 libassuan libattr libblkid libcap libcap-ng libcom_err libcomps libcurl libdb libdb-utils libdnf libfdisk libffi libgcc libgcrypt libgpg-error libidn2 libksba libmetalink libmodulemd1 libmount libnghttp2 libnsl2 libpcap libpsl libpwquality librepo libreport-filesystem libseccomp libselinux libsemanage libsepol libsigsegv libsmartcols libsolv libssh libsss_idmap libsss_nss_idmap libstdc++ libtasn1 libtirpc libunistring libusbx libutempter libuuid libverto libxcrypt libxml2 libyaml libzstd lua-libs lz4-libs mpfr ncurses ncurses-base ncurses-libs nettle npth openldap openssl-libs p11-kit p11-kit-trust pam pcre pcre2 popt publicsuffix-list-dafsa python3 python3-dnf python3-gpg python3-hawkey python3-libcomps python3-libdnf python3-libs python3-rpm python-pip-wheel python-setuptools-wheel qrencode-libs readline rootfiles rpm rpm-build-libs rpm-libs rpm-sign-libs sed setup shadow-utils sqlite-libs sssd-client sudo systemd systemd-libs systemd-pam systemd-rpm-macros tar tzdata util-linux vim-minimal xz-libs zchunk-libs zlib"
5637

5738
local repo_url
5839
if [ "${ARCH}" = "i386" ]
@@ -111,13 +92,13 @@ do_install()
11192

11293
component_exec core/mnt core/net
11394

114-
msg -n "Updating repository ... "
115-
yum_repository
95+
msg -n "Setting dnf excludes ..."
96+
echo "exclude=grubby" >> "${CHROOT_DIR}"/etc/dnf/dnf.conf
11697
is_ok "fail" "done"
11798

118-
msg "Installing minimal environment: "
119-
dnf_install @minimal-environment --exclude filesystem,openssh-server
120-
is_ok || return 1
99+
msg -n "Upgrading packages ..."
100+
chroot_exec -u root dnf -y upgrade --refresh
101+
is_ok "fail" "done"
121102

122103
if [ -n "${EXTRA_PACKAGES}" ]; then
123104
msg "Installing extra packages: "

include/core/aid/deploy.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ do_help()
5656
{
5757
cat <<EOF
5858
--privileged-users="${PRIVILEGED_USERS}"
59-
A list of users separated by a space to be added to Android groups. Use
60-
a format UID:GID.
59+
A list of users in a format UID:GID separated by a space to be added UID to GID.
6160
6261
EOF
6362
}

include/desktop/dbus/deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ do_install()
1616
pacman_install ${packages}
1717
;;
1818
fedora:*)
19-
packages="dbus"
19+
packages="dbus dbus-tools"
2020
dnf_install ${packages}
2121
;;
2222
centos:*)

0 commit comments

Comments
 (0)