Skip to content

Commit 08eb134

Browse files
committed
chroot: fix up debootstrap flag generation
Previously, each element passed to debootstrap would be separated by two commas, rather than one. Now the separation is only a single comma.
1 parent d7f1c95 commit 08eb134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

create-chroot.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ then
2424
fi
2525

2626
mkdir "${HOMEWORLD_CHROOT}"
27-
sudo debootstrap --include="$(cat chroot-packages.list | grep -vE '^#' | tr '\n ' ',,' | sed 's/,$//')" stretch "${HOMEWORLD_CHROOT}" http://debian.csail.mit.edu/debian/
27+
sudo debootstrap --include="$(cat chroot-packages.list | grep -vE '^#' | tr '\n ' ',,' | sed 's/,$//' | sed 's/,,/,/g')" stretch "${HOMEWORLD_CHROOT}" http://debian.csail.mit.edu/debian/
2828
sudo ln -sT "homeworld/building" "${HOMEWORLD_CHROOT}/h"
2929
sudo chroot "${HOMEWORLD_CHROOT}" useradd -m -u "$UID" "$USER" -s "/bin/bash"
3030
sudo bash -c "echo '$USER ALL=(ALL) NOPASSWD:ALL' >>'${HOMEWORLD_CHROOT}/etc/sudoers'"

0 commit comments

Comments
 (0)