# Custom rocky iso is rebooting and reinstalling OS

**URL:** <https://forums.rockylinux.org/t/custom-rocky-iso-is-rebooting-and-reinstalling-os/9035>\
**Category:** Infrastructure\
**Created:** [February 27, 2023, 12:14pm UTC](https://forums.rockylinux.org/t/custom-rocky-iso-is-rebooting-and-reinstalling-os/9035 "2023-02-27T12:14:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumanth](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@sumanth](https://forums.rockylinux.org/u/sumanth)\
**Post date:** [February 27, 2023, 12:14pm UTC](https://forums.rockylinux.org/t/custom-rocky-iso-is-rebooting-and-reinstalling-os/9035/1 "2023-02-27T12:14:31Z")

</div>

I have created custom ISO image from “Rocky-8.7-x86\_64-minimal.iso” using  
“mkksiso /root/anaconda-ks1.cfg /root/Rocky-8.7-x86\_64-boot.iso /root/Rocky-8.7-x86\_64-test.iso”

When I try to setup machine from my custom ISO image using .ks(kick start config file) .  
All the ‘OS’ configurations are setting up properly and machine is going for reboot. But after the reboot again it is reinstalling ‘OS’ and rebooting and continues to reboot.

Ks.file

#version=RHEL8

# Use graphical install

#graphical  
install

%packages  
@^minimal-environment  
kexec-tools

%end

# Keyboard layouts

keyboard --xlayouts=‘us’

# System language

lang en\_US.UTF-8

# Network information

network --bootproto=dhcp --device=enp0s3 --ipv6=auto --activate  
network --hostname=localhost.localdomain

# Run the Setup Agent on first boot

firstboot --enable

ignoredisk --only-use=sda  
autopart

# Partition clearing information

clearpart --none --initlabel

# System timezone

timezone America/New\_York --isUtc

# Root password

rootpw --iscrypted $6$FFOHl40vEkoTSlO6$NOrM5i3/VroVyNFQOaQwhFNbhqE0ZoglCa9HC3JUWBxxAbxnPoJkTVkVisahEC96FkcsuM3pBom5eYMs5LH2s/

%addon com\_redhat\_kdump --enable --reserve-mb=‘auto’

# OMIT X11

skipx

# Use network installation

url --url [https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/](https://download.rockylinux.org/stg/rocky/8/BaseOS/$basearch/os/)  
repo --name=“BaseOS” –

# System bootloader configuration

bootloader --append=“no\_timer\_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop” --location=mbr --timeout=1

# Clear the Master Boot Record

zerombr

# Partition clearing information

clearpart --all --initlabel --disklabel=gpt

# Disk partitioning information

part biosboot --size=1 --fstype=biosboot --asprimary  
part /boot/efi --size=100 --fstype=efi --asprimary  
part /boot --size=1000 --fstype=xfs --label=boot  
part / --size=8000 --fstype=“xfs” --mkfsoptions “-m bigtime=0,inobtcount=0” --grow

# Shutdown after installation

shutdown

%end

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

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:23am UTC](https://forums.rockylinux.org/t/custom-rocky-iso-is-rebooting-and-reinstalling-os/9035/2 "2023-08-25T03:23:29Z")

</div>


