Skip to content

Commit 143cc9b

Browse files
committed
small touches
1 parent a504382 commit 143cc9b

5 files changed

Lines changed: 6 additions & 7 deletions

File tree

.config.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,13 @@ export MOUNT_PATH=$STORAGE/temp/mnt/nice_root
3030
export DISK_FILE="$STORAGE/sda.img"
3131
export NICE_HAS_PRIMARY_DISK="1"
3232
export NICE_HAS_SECONDARY_DISK="0"
33-
export LINUX_COPY_SRC_TO_TARGET="0"
3433
export INITRAMFS_BUILD=$BUILDS/initramfs
3534
export SUPPORT_BUILD=$BUILDS/support
3635

3736
# Find out preset
3837
NICE_PRESET_ROOT=${NICE_PRESET_ROOT:-"$BASE/presets"}
3938
if [ -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
4342
fi

distro_extractor/artix/install_vm.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ pacman-key --populate archlinux
2121

2222

2323
basestrap /mnt $(cat /tmp/packages.arch.txt | xargs)
24-
artix-chroot /mnt /bin/sh -c '
25-
echo "Cleaning installation"
2624

27-
'
2825

2926
sync
3027
umount /mnt/

scripts/extract.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ fi
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/"

scripts/extract_from_vm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ function boot_info() {
66
echo -n ""
77
}
88
source "$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

1011
function 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=''

scripts/extract_signpost.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ source ./.config.sh || exit 1
55

66
function 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

0 commit comments

Comments
 (0)