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