Re: Kickstart - part ignore onpart ?? sovled, but not enough place for core.img grub2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Terrible me of understand how that works ...


But: not enough place on sda for core.img if you are using grub2 ???
     I bump boot to 500MB, help nothing. Try another filesystem same 
     error.


"Sometimes you must be the developer to understand the program."


now it looks like

#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=de-nodeadkeys --xlayouts='de (nodeadkeys)'
# System language
lang de_DE.UTF-8

# Network information
network  --bootproto=dhcp --device=enp0s3 --ipv6=auto --no-activate
network  --hostname=localhost.localdomain

# Root password
rootpw --iscrypted $6$ZzmFRmN6XqC0.Mc4
$LVrBwcqgnv5kIU5mM8e424PDPD7P1dq342lIZrB9gVFzv6EzSRPTGfLyH/M4yf88iwUpOK/XidvqWiYVl8xcG1
# System services
services --enabled="chronyd"
# System timezone
timezone Europe/Berlin --isUtc
user --groups=wheel --name=andy --password=$6$gpkn155QMucNw0DC
$TUuSuPCe5NEdFyoF/e.bKzrEHvE7W5gyYqNMCmKbkdLIyUnq1qAD5A/.ax/r6DU1MspPnrUzpuWw7rEzOD9hM. --iscrypted --gecos="Andreas Benzler"
# System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
# Disk partitioning information
clearpart --none
part    /boot   --fstype=ext2 --onpart=/dev/sda1 --noformat
part    /       --fstype=ext2 --onpart=/dev/sda2 --noformat
part    swap     --onpart=sda3 --noformat

selinux --disabled

%packages
@^minimal
@core
chrony
#nfs-utils
#bind-utils
kexec-tools
%end

%pre
# clear the MBR and partition table
dd if=/dev/zero of=/dev/sda bs=512 count=1
partprobe
parted -s /dev/sda mklabel msdos

TOTAL=`parted -s /dev/sda unit mb print free | grep Free | awk '{print
$3}' | cut -d "M" -f1`
let SWAP_START=$TOTAL-820
let ROOT_END=$TOTAL-500-820
parted -s /dev/sda mkpart primary ext2 0 500
parted -s /dev/sda mkpart primary ext2 500 $ROOT_END
parted -s /dev/sda mkpart primary linux-swap $SWAP_START $TOTAL
# parted -s /dev/sda set 1 boot on

mkfs.ext2 -L BOOT /dev/sda1
mkfs.ext2 -L ROOT /dev/sda2
mkswap -L SWAP /dev/sda3

%end

%addon com_redhat_kdump --enable --reserve-mb='auto'

%end

%anaconda
pwpolicy root --minlen=6 --minquality=50 --notstrict --nochanges
--notempty
pwpolicy user --minlen=6 --minquality=50 --notstrict --nochanges
--notempty
pwpolicy luks --minlen=6 --minquality=50 --notstrict --nochanges
--notempty
%end


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux