fix
This commit is contained in:
parent
ed78e3a1a5
commit
ac771a95a7
@ -1,13 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
path=`pwd`
|
||||
|
||||
echo "Updating packages"
|
||||
pacman -Syu --noconfirm archiso
|
||||
echo "Deleting old archiso"
|
||||
rm -rf /root/archiso
|
||||
rm -rf /root/archiso_work
|
||||
rm -rf $path/archiso
|
||||
rm -rf $path/archiso_work
|
||||
echo "Copying new archiso"
|
||||
cp -r /usr/share/archiso/configs/releng/ /root/archiso
|
||||
cp -r /usr/share/archiso/configs/releng/ $path/archiso
|
||||
echo "Pasting pacman.conf"
|
||||
cat > /root/archiso/pacman.conf << EOF
|
||||
cat > $path/archiso/pacman.conf << EOF
|
||||
#
|
||||
# /etc/pacman.conf
|
||||
#
|
||||
@ -114,7 +117,7 @@ Include = /etc/pacman.d/mirrorlist
|
||||
#Server = file:///home/custompkgs
|
||||
EOF
|
||||
echo "Pasting packages.x86_64"
|
||||
cat > /root/archiso/packages.x86_64 << EOF
|
||||
cat > $path/archiso/packages.x86_64 << EOF
|
||||
alsa-utils
|
||||
amd-ucode
|
||||
arch-install-scripts
|
||||
@ -243,7 +246,7 @@ EOF
|
||||
|
||||
echo "Pasting postinstall commands"
|
||||
|
||||
cat >> /root/archiso/airootfs/root/customize_airootfs.sh << _EOF_
|
||||
cat >> $path/archiso/airootfs$path/customize_airootfs.sh << _EOF_
|
||||
systemctl enable lightdm NetworkManager
|
||||
systemctl set-default graphical.target
|
||||
useradd -m losted
|
||||
@ -258,6 +261,6 @@ _EOF_
|
||||
|
||||
|
||||
echo "Running mkarchiso"
|
||||
mkdir /root/archiso_out /root/archiso_work
|
||||
mkarchiso -v -w /root/archiso_work -o /root/archiso_out /root/archiso
|
||||
mkdir $path/archiso_out $path/archiso_work
|
||||
mkarchiso -v -w $path/archiso_work -o $path/archiso_out $path/archiso
|
||||
echo "Done"
|
||||
|
Loading…
Reference in New Issue
Block a user