noimage_format
This commit is contained in:
parent
0125bdc50a
commit
b09e57e56f
5 changed files with 34 additions and 3 deletions
|
@ -5,8 +5,8 @@ run_hook ()
|
||||||
if [[ "${format}" == "y" ]]; then
|
if [[ "${format}" == "y" ]]; then
|
||||||
sfdisk -l
|
sfdisk -l
|
||||||
|
|
||||||
read -p "Welches Laufwerk soll eine cow_device erhalten? /dev/sda : " formatdevice
|
|
||||||
[[ -z "${formatdevice}" ]] && formatdevice=/dev/sda
|
[[ -z "${formatdevice}" ]] && formatdevice=/dev/sda
|
||||||
|
[[ -z "${formatpartition}" ]] && formatpartition=3
|
||||||
|
|
||||||
fdisk ${formatdevice} <<EOT
|
fdisk ${formatdevice} <<EOT
|
||||||
p
|
p
|
||||||
|
@ -19,9 +19,9 @@ p
|
||||||
w
|
w
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
mkfs.btrfs -f -L cow_device ${formatdevice}3
|
mkfs.btrfs -f -L cow_device ${formatdevice}${formatpartition}
|
||||||
|
|
||||||
launch_interactive_shell
|
reboot -f
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
5
releng/archiso-x86_64-cd-default_noimage-format.conf
Executable file
5
releng/archiso-x86_64-cd-default_noimage-format.conf
Executable 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
|
5
releng/archiso-x86_64-usb-default_noimage-format.conf
Executable file
5
releng/archiso-x86_64-usb-default_noimage-format.conf
Executable 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
|
|
@ -26,6 +26,13 @@ LINUX /%INSTALL_DIR%/boot/%arch%/vmlinuz
|
||||||
INITRD /%INSTALL_DIR%/boot/%arch%/archiso.img
|
INITRD /%INSTALL_DIR%/boot/%arch%/archiso.img
|
||||||
APPEND archisolabel=%ISO_LABEL% cow_label=cow_device copytoram=y quiet splash
|
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
|
# default nvidia
|
||||||
LABEL arch
|
LABEL arch
|
||||||
MENU LABEL %ISO_LABEL% DEFAULT NVIDIA
|
MENU LABEL %ISO_LABEL% DEFAULT NVIDIA
|
||||||
|
|
14
syslinux.cfg
14
syslinux.cfg
|
@ -75,6 +75,20 @@ LINUX /%INSTALL_DIR%/boot/%arch%/vmlinuz
|
||||||
INITRD /%INSTALL_DIR%/boot/%arch%/archiso.img
|
INITRD /%INSTALL_DIR%/boot/%arch%/archiso.img
|
||||||
APPEND archisolabel=%ISO_LABEL% cow_label=cow_device copytoram=y quiet splash
|
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
|
# default checksum
|
||||||
LABEL arch
|
LABEL arch
|
||||||
MENU LABEL %ISO_LABEL% DEFAULT Check disc for defects
|
MENU LABEL %ISO_LABEL% DEFAULT Check disc for defects
|
||||||
|
|
Loading…
Reference in a new issue