Skip to content

Commit a3648d6

Browse files
committed
Fixed problem with initial installation
1 parent 4bf9994 commit a3648d6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

include/bootstrap/archlinux/deploy.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ do_install()
115115
is_ok "fail" "done"
116116

117117
msg "Installing base packages: "
118-
extra_packages=$(chroot_exec -u root /usr/bin/pacman --noconfirm -Sg base | awk '{print $2}' | grep -v -e 'linux' -e 'kernel' | xargs)
118+
chroot_exec -u root pacman -Syq
119+
extra_packages=$(chroot_exec -u root pacman -Sqg base | grep -v -e 'linux' -e 'kernel' | xargs)
119120
pacman_install ${basic_packages} ${extra_packages}
120121
is_ok || return 1
121122

include/core/aid/deploy.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ do_configure()
66
{
77
msg ":: Configuring ${COMPONENT} ... "
88
# set min uid and gid
9-
sed -i 's|^UID_MIN.*|UID_MIN 5000|g' "${CHROOT_DIR}/etc/login.defs"
10-
sed -i 's|^GID_MIN.*|GID_MIN 5000|g' "${CHROOT_DIR}/etc/login.defs"
9+
sed -i 's|^[#]\?UID_MIN.*|UID_MIN 5000|' "${CHROOT_DIR}/etc/login.defs"
10+
sed -i 's|^[#]\?GID_MIN.*|GID_MIN 5000|' "${CHROOT_DIR}/etc/login.defs"
1111
# add android groups
1212
local aid uid
1313
for aid in $(cat "${COMPONENT_DIR}/android_groups")
1414
do
1515
local xname=$(echo ${aid} | awk -F: '{print $1}')
1616
local xid=$(echo ${aid} | awk -F: '{print $2}')
17-
sed -i "s|^${xname}:.*|${xname}:x:${xid}:${USER_NAME}|g" "${CHROOT_DIR}/etc/group"
17+
sed -i "s|^${xname}:.*|${xname}:x:${xid}:${USER_NAME}|" "${CHROOT_DIR}/etc/group"
1818
if ! $(grep -q "^${xname}:" "${CHROOT_DIR}/etc/group"); then
1919
echo "${xname}:x:${xid}:${USER_NAME}" >> "${CHROOT_DIR}/etc/group"
2020
fi
@@ -25,7 +25,7 @@ do_configure()
2525
for uid in ${PRIVILEGED_USERS}
2626
do
2727
if ! $(grep -q "^${xname}:.*${uid}" "${CHROOT_DIR}/etc/group"); then
28-
sed -i "s|^\(${xname}:.*\)|\1,${uid}|g" "${CHROOT_DIR}/etc/group"
28+
sed -i "s|^\(${xname}:.*\)|\1,${uid}|" "${CHROOT_DIR}/etc/group"
2929
fi
3030
done
3131
done

0 commit comments

Comments
 (0)