noimage_format

This commit is contained in:
simono41 2018-04-01 23:56:32 +02:00
parent 0125bdc50a
commit b09e57e56f
5 changed files with 34 additions and 3 deletions

View file

@ -5,8 +5,8 @@ run_hook ()
if [[ "${format}" == "y" ]]; then
sfdisk -l
read -p "Welches Laufwerk soll eine cow_device erhalten? /dev/sda : " formatdevice
[[ -z "${formatdevice}" ]] && formatdevice=/dev/sda
[[ -z "${formatpartition}" ]] && formatpartition=3
fdisk ${formatdevice} <<EOT
p
@ -19,9 +19,9 @@ p
w
EOT
mkfs.btrfs -f -L cow_device ${formatdevice}3
mkfs.btrfs -f -L cow_device ${formatdevice}${formatpartition}
launch_interactive_shell
reboot -f
fi
}

View file

@ -0,0 +1,5 @@
# noimage format
title %ISO_LABEL% %arch% UEFI DVD NOIMAGE FORMAT
linux /EFI/archiso/vmlinuz.efi
initrd /EFI/archiso/archiso.img
options archisobasedir=%INSTALL_DIR% archisolabel=%ISO_LABEL% cow_spacesize=1024M format=y formatdevice=/dev/sda formatpartition=3

View file

@ -0,0 +1,5 @@
# noimage format
title %ISO_LABEL% %arch% UEFI USB NOIMAGE FORMAT
linux /%INSTALL_DIR%/boot/%arch%/vmlinuz
initrd /%INSTALL_DIR%/boot/%arch%/archiso.img
options archisobasedir=%INSTALL_DIR% archisolabel=%ISO_LABEL% cow_spacesize=1024M format=y formatdevice=/dev/sda formatpartition=3

View file

@ -26,6 +26,13 @@ LINUX /%INSTALL_DIR%/boot/%arch%/vmlinuz
INITRD /%INSTALL_DIR%/boot/%arch%/archiso.img
APPEND archisolabel=%ISO_LABEL% cow_label=cow_device copytoram=y quiet splash
# default noimage format
LABEL arch
MENU LABEL %ISO_LABEL% DEFAULT NOIMAGE FORMAT
LINUX /%INSTALL_DIR%/boot/%arch%/vmlinuz
INITRD /%INSTALL_DIR%/boot/%arch%/archiso.img
APPEND archisolabel=%ISO_LABEL% format=y formatdevice=/dev/sda formatpartition=3
# default nvidia
LABEL arch
MENU LABEL %ISO_LABEL% DEFAULT NVIDIA

View file

@ -75,6 +75,20 @@ LINUX /%INSTALL_DIR%/boot/%arch%/vmlinuz
INITRD /%INSTALL_DIR%/boot/%arch%/archiso.img
APPEND archisolabel=%ISO_LABEL% cow_label=cow_device copytoram=y quiet splash
# default noimage format
LABEL arch
MENU LABEL %ISO_LABEL% DEFAULT NOIMAGE FORMAT
LINUX /%INSTALL_DIR%/boot/%arch%/vmlinuz
INITRD /%INSTALL_DIR%/boot/%arch%/archiso.img
APPEND archisolabel=%ISO_LABEL% format=y formatdevice=/dev/sda formatpartition=3
# default nvidia
LABEL arch
MENU LABEL %ISO_LABEL% DEFAULT NVIDIA
LINUX /%INSTALL_DIR%/boot/%arch%/vmlinuz
INITRD /%INSTALL_DIR%/boot/%arch%/archiso.img
APPEND archisolabel=%ISO_LABEL% cow_spacesize=1024M nvidia-drm.modeset=1 nvidia=y quiet splash
# default checksum
LABEL arch
MENU LABEL %ISO_LABEL% DEFAULT Check disc for defects