Skip to content

Commit

Permalink
Merge branch 'attilabogar-fixes'
Browse files Browse the repository at this point in the history
  • Loading branch information
tokland committed Jun 17, 2019
2 parents 821cad5 + 3263284 commit 6fb477f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion arch-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,13 @@ configure_minimal_system() {
sed -ie 's/^root:.*$/root:$1$GT9AUpJe$oXANVIjIzcnmOpY07iaGi\/:14657::::::/' "$DEST/etc/shadow"
touch "$DEST/etc/group"
echo "bootstrap" > "$DEST/etc/hostname"


rm -f "$DEST/etc/mtab"
echo "rootfs / rootfs rw 0 0" > "$DEST/etc/mtab"
test -e "$DEST/dev/null" || mknod "$DEST/dev/null" c 1 3
test -e "$DEST/dev/random" || mknod -m 0644 "$DEST/dev/random" c 1 8
test -e "$DEST/dev/urandom" || mknod -m 0644 "$DEST/dev/urandom" c 1 9

sed -i "s/^[[:space:]]*\(CheckSpace\)/# \1/" "$DEST/etc/pacman.conf"
sed -i "s/^[[:space:]]*SigLevel[[:space:]]*=.*$/SigLevel = Never/" "$DEST/etc/pacman.conf"
}
Expand Down

0 comments on commit 6fb477f

Please sign in to comment.