File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,14 +30,13 @@ export MOUNT_PATH=$STORAGE/temp/mnt/nice_root
3030export DISK_FILE=" $STORAGE /sda.img"
3131export NICE_HAS_PRIMARY_DISK=" 1"
3232export NICE_HAS_SECONDARY_DISK=" 0"
33- export LINUX_COPY_SRC_TO_TARGET=" 0"
3433export INITRAMFS_BUILD=$BUILDS /initramfs
3534export SUPPORT_BUILD=$BUILDS /support
3635
3736# Find out preset
3837NICE_PRESET_ROOT=${NICE_PRESET_ROOT:- " $BASE /presets" }
3938if [ -z $NICE_PRESET ]; then
40- echo " You need to specify preset from $NICE_PRESET_ROOT folder"
39+ echo " You need to specify preset from ' $NICE_PRESET_ROOT ' folder"
4140 echo " use 'export NICE_PRESET=minimal' for example"
4241 exit 1
4342fi
Original file line number Diff line number Diff line change @@ -21,10 +21,7 @@ pacman-key --populate archlinux
2121
2222
2323basestrap /mnt $( cat /tmp/packages.arch.txt | xargs)
24- artix-chroot /mnt /bin/sh -c '
25- echo "Cleaning installation"
2624
27- '
2825
2926sync
3027umount /mnt/
Original file line number Diff line number Diff line change 1818{
1919 echo " Copying files from '$VM_MOUNT_ROOT ' to '$TARGET '"
2020 notify ' We need sudo for copying'
21+ if ! sudo ls " $VM_MOUNT_ROOT /usr/" 2> /dev/null; then
22+ dd " Cannot read '$VM_MOUNT_ROOT /usr/', extract failed?"
23+ fi
2124
2225 echo " Copying: usr/"
2326 rm -rf " $TARGET /usr/"
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ function boot_info() {
66 echo -n " "
77}
88source " $BASE /distro_extractor/$DISTRO /inc.sh" || dd " File '$BASE /distro_extractor/$DISTRO /inc.sh' cannot be sourced"
9+ [ -r " $NICE_PRESET_PATH /packages.${PM} .txt" ] || dd " No packages list for your preset and $DISTRO found ($NICE_PRESET_PATH /packages.${PM} .txt)"
910
1011function ssh_install() {
11- [ -r " $NICE_PRESET_PATH /packages.${PM} .txt" ] || dd " No packages list for your preset and $DISTRO found ($NICE_PRESET_PATH /packages.${PM} .txt)"
1212 echo " NICE_ARCH=$NICE_ARCH " > " $OPT /nice_os_settings.sh"
1313 [ -n " $VM_PASS " ] && echo " For password prompt write $VM_PASS " || true
1414 sudoCommand=' '
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ source ./.config.sh || exit 1
55
66function requires_distro_variable() {
77 if [ -z " $DISTRO " ]; then
8- echo " You need to specify extracting distribution from $BASE /distro_extractor, use one of"
8+ echo " You need to specify extracting distribution from ' $BASE /distro_extractor' , use one of"
99 ls -I ' README.md' " $BASE /distro_extractor"
1010 dd " use 'export DISTRO=artix' for example"
1111 fi
You can’t perform that action at this time.
0 commit comments