image to HDD copy minimalize
This commit is contained in:
parent
195f5aa546
commit
3f35232b33
@ -69,7 +69,7 @@ pacman-key --init && pacman-key --populate
|
||||
pacman-key --refresh-keys
|
||||
|
||||
mount /dev/$disk /mnt
|
||||
pacstrap /mnt base linux linux-firmware
|
||||
pacstrap /mnt base linux linux-firmware vim nano
|
||||
|
||||
#copy install data
|
||||
cp -r /to_install/* /mnt/
|
||||
@ -98,7 +98,7 @@ echo "127.0.0.1 localhost" > /etc/hosts
|
||||
echo "::1 localhost" >> /etc/hosts
|
||||
echo "127.0.1.1 $hostname.localdomain $hostname" >> /etc/hosts
|
||||
|
||||
mkinitcpio -P
|
||||
#mkinitcpio -P
|
||||
|
||||
#install from lists
|
||||
gpg --refresh-keys
|
||||
@ -116,6 +116,10 @@ echo -e "$userpass" | passwd "$username"
|
||||
|
||||
echo -e "$rootpass" | passwd root
|
||||
|
||||
systemctl enable gdm.service
|
||||
systemctl enable NetworkManager.service
|
||||
systemctl --user enable pulseaudio.service
|
||||
|
||||
#install grub
|
||||
pacman --noconfirm -S grub
|
||||
grub-install /dev/$grubdisk
|
||||
|
10
build.sh
10
build.sh
@ -1,9 +1,15 @@
|
||||
rm -rf airootfs/to_install
|
||||
mkdir airootfs/to_install
|
||||
mkdir airootfs/to_install/etc
|
||||
mkdir airootfs/to_install/usr
|
||||
|
||||
touch airootfs/to_install/do_not_edit
|
||||
cp packages.x86_64 airootfs/to_install
|
||||
cp -r airootfs/etc airootfs/to_install
|
||||
cp -r airootfs/usr airootfs/to_install
|
||||
cp -r airootfs/etc/skel airootfs/to_install/etc
|
||||
cp airootfs/etc/pacman.conf airootfs/to_install/etc
|
||||
cp airootfs/etc/os-release airootfs/to_install/etc
|
||||
cp airootfs/etc/bash.bashrc airootfs/to_install/etc
|
||||
cp -r airootfs/etc/pacman.d airootfs/to_install/etc
|
||||
cp -r airootfs/usr/backgrounds airootfs/to_install/usr
|
||||
|
||||
mkarchiso -v -o ${PWD}/out ${PWD}
|
||||
|
Loading…
x
Reference in New Issue
Block a user