mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
Distro-builder is now not interactive
This commit is contained in:
parent
78c32056ab
commit
037e8b0a65
1 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Plugbox Linux Distribution Image Builder
|
||||
# Version 0.3.0
|
||||
# Version 0.3.3
|
||||
#
|
||||
# Licensed under the GPLv2.
|
||||
#
|
||||
|
@ -24,7 +24,7 @@ MAKEUBIIMG=1
|
|||
mkdir -p $1
|
||||
echo -e "\033[1mInstalling packages...\033[0m"
|
||||
mkdir -p $1/var/lib/pacman
|
||||
pacman -Syy -r $1 $INSTALLEDPKGS
|
||||
pacman -Syy --noconfirm --noprogressbar -r $1 $INSTALLEDPKGS
|
||||
|
||||
echo -e "\033[1mSetting the password to 'root' and cleaning up:\033[0m"
|
||||
echo -e "root\nroot\n" | chroot $1/ /usr/bin/passwd root
|
||||
|
@ -36,14 +36,14 @@ rm $1/etc/locale.gen
|
|||
echo "en_US.UTF-8 UTF-8" >> $1/etc/locale.gen
|
||||
echo "en_US ISO-8859-1" >> $1/etc/locale.gen
|
||||
chroot $1/ /usr/sbin/locale-gen
|
||||
chroot $1/ /usr/bin/pacman -Scc
|
||||
chroot $1/ /usr/bin/pacman -Scc --noconfirm
|
||||
echo $RELEASEVER > $1/etc/plugbox-version
|
||||
|
||||
# Here is the rootfs.tar.gz part if you set MAKETARGZ to 1
|
||||
if [ $MAKETARGZ = 1 ]; then
|
||||
echo -e "\033[1mCreating a rootfs.tar.gz...\033[0m"
|
||||
cd $1
|
||||
tar czf ../Plugbox-Linux-$RELEASEVER.tar.gz ./*
|
||||
tar czf ../Plugbox-Linux-$RELEASEVER-rootfs.tar.gz ./*
|
||||
cd ../
|
||||
else
|
||||
echo -e "\033[1mNot creating a rootfs.tar.gz...\033[0m"
|
||||
|
|
Loading…
Reference in a new issue