##// END OF EJS Templates
Added: KERNELSRC_PREBUILT, KERNELSRC_ rename, fix-quotes
Added: KERNELSRC_PREBUILT, KERNELSRC_ rename, fix-quotes

Fichier de la dernière révision:

r75:24bd7e97cf9d
r75:24bd7e97cf9d
Show More
10-bootstrap.sh
28 lines | 925 B | application/x-sh | BashLexer
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 #
# Debootstrap basic system
#
Jan Wagner
spliting more files, fix-uboot, fix-fbturbo, fix-locale
r67 # Load utility functions
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 . ./functions.sh
# Base debootstrap (unpack only)
if [ "$ENABLE_MINBASE" = true ] ; then
Jan Wagner
Added: KERNELSRC_PREBUILT, KERNELSRC_ rename, fix-quotes
r75 http_proxy=${APT_PROXY} debootstrap --arch="${RELEASE_ARCH}" --variant=minbase --foreign --include="${APT_INCLUDES}" "${RELEASE}" "$R" "http://${APT_SERVER}/debian"
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 else
Jan Wagner
Added: KERNELSRC_PREBUILT, KERNELSRC_ rename, fix-quotes
r75 http_proxy=${APT_PROXY} debootstrap --arch="${RELEASE_ARCH}" --foreign --include="${APT_INCLUDES}" "${RELEASE}" "$R" "http://${APT_SERVER}/debian"
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 fi
# Copy qemu emulator binary to chroot
Jan Wagner
Added: KERNELSRC_PREBUILT, KERNELSRC_ rename, fix-quotes
r75 cp "${QEMU_BINARY}" "$R/usr/bin"
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56
# Copy debian-archive-keyring.pgp
Jan Wagner
Added: KERNELSRC_PREBUILT, KERNELSRC_ rename, fix-quotes
r75 mkdir -p "$R/usr/share/keyrings"
cp /usr/share/keyrings/debian-archive-keyring.gpg "$R/usr/share/keyrings/debian-archive-keyring.gpg"
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56
# Complete the bootstrapping process
chroot_exec /debootstrap/debootstrap --second-stage
# Mount required filesystems
Jan Wagner
Added: KERNELSRC_PREBUILT, KERNELSRC_ rename, fix-quotes
r75 mount -t proc none "$R/proc"
mount -t sysfs none "$R/sys"
mount --bind /dev/pts "$R/dev/pts"