Hello Guys,
after hours of uncessfull create example before i forward special parition tests.
part ignoe --onpart
But Installation hang out for parition the harddisk.
jump to another console partitions are ok ?
Which line/lines is/are missing?
Andy
#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 part /boot --onpart=/dev/sda1 part / --onpart=/dev/sda2 part swap --onpart=/dev/sda3
selinux --disabled
%packages @^minimal @core chrony kexec-tools %end
%pre # clear the MBR and partition table dd if=/dev/zero of=/dev/sda bs=512 count=1 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-128-820 parted -s /dev/sda mkpart primary ext2 0 128 parted -s /dev/sda mkpart primary ext2 128 $ROOT_END parted -s /dev/sda mkpart primary linux-swap $SWAP_START $TOTAL
mkfs.ext2 /dev/sda1 mkfs.ext2 /dev/sda2 mkswap /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
On 2/15/2017 11:04 AM, Andreas Benzler wrote:
after hours of uncessfull create example before i forward special parition tests.
part ignoe --onpart
But Installation hang out for parition the harddisk.
jump to another console partitions are ok ?
There are an awful lot of typos in this email message, including the command you're saying you're using... leads me to wonder if you're not making similar errors in what you're actually doing.
I'm ill, i'm german ...
the script is looks ok, copy from a slim installation of anaconda. Insert only the "pre part"
and
part /boot --onpart=/dev/sda1 part / --onpart=/dev/sda2 part swap --onpart=/dev/sda3
As i wrote: Jump over to another console and the partitions are there.
Sincerely
Andy
Am Mittwoch, den 15.02.2017, 11:16 -0800 schrieb John R Pierce:
On 2/15/2017 11:04 AM, Andreas Benzler wrote:
after hours of uncessfull create example before i forward special parition tests.
part ignoe --onpart
But Installation hang out for parition the harddisk.
jump to another console partitions are ok ?
There are an awful lot of typos in this email message, including the command you're saying you're using... leads me to wonder if you're not making similar errors in what you're actually doing.
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