cant login to livecd made by livemedia-creator in lorax package

Latest response

i've installed the lorax package under rhel7.1 which enable me to custom create live cd.
i followed the documentation and tried to made some changes according to my need and especially changes that might enable me to login with root user or other user i create along the process.

but no matter what i do or configure after the process has created the livecd iso and i boot with it i can't seem to login with root or any other user for that matter.
in general and without getting into too much tech details for now: i configured the /usr/share/doc/lorax-19.6.51/rhel7-minimal.ks file and changed the root password and in general tried all kind of staff but no matter what i do login to console does not work for me.

did anyone succeed of creating a custom live cd and login with root user.
am i missing something here?

documentation link:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/sect-disk-image-installation-automatic.html

Responses

Dear Asaf,

If you leave out the tech details, how do you think we are able to help you?
Some of us have the means to simulate what you did, but for that we really need the tech details.

Kind regards,

Jan Gerrit Kootstra

i didnt supply too much details because i wasn't sure on what tech details i should supplied.
i guess i wanted to hear from someone who manage to create the iso with root login first.
but in order to start the ball rolling i will add some details. :)

i basically used the default ks config file except of the "url" and "repo" which i modified to suit my repositories.
and changed the password to a simple one where ever is saw the root modification section.

the command to start the process:
livemedia-creator --make-iso --no-virt --ks="/usr/share/doc/lorax-19.6.51/rhel7-minimal.ks"

this is the ks file im using:

cat "/usr/share/doc/lorax-19.6.51/rhel7-minimal.ks"

Minimal Disk Image

#
sshpw --username=root --plaintext 1q2w3e4R

Firewall configuration

firewall --enabled

Use network installation

url --url=http://repo/rhel7.0/Server/os

repo --name=optional --baseurl=http://repo/rhel7.0/Server/optional/os

Root password

rootpw --plaintext 1q2w3e4r

Network information

network --bootproto=dhcp --onboot=on --activate

System authorization information

auth --useshadow --enablemd5

System keyboard

keyboard --xlayouts=us --vckeymap=us

System language

lang en_US.UTF-8

SELinux configuration

selinux --enforcing

Installation logging level

logging --level=info

Shutdown after installation

shutdown

System timezone

timezone US/Eastern

System bootloader configuration

bootloader --location=mbr

Clear the Master Boot Record

zerombr

Partition clearing information

clearpart --all

Disk partitioning information

part / --fstype="ext4" --size=4000
part swap --size=1000

%post

Remove root password

passwd -d root > /dev/null
%end

%packages
@core
kernel
memtest86+
grub2-efi
grub2
shim
syslinux
-dracu

i also tried to remove the section where the root password is being reseted. but it didn't work.

Asaf,

Once I am at home, I will run the simulation and let you know the result.

Kind regards,

Jan Gerrit Kootstra

thanks you for your assistance!

I am still busy setting up the repository for the simulation.

I am running the livemedia-creator now with your kickstart file
Using the original kickstart file did not set the root password at all. It gave an automatic graphical login to an ordinary user and su - did not ask for a password, until I set it by hand.

At first I do not need a password, only after I set it. It will be used after a logout.
The password is only valid until the next reboot.

after a reboot the following users are available: liveuser and root

That is very strange...
So let me try to understand what u did.
U just install the lorax package and then modified only the repo part.
Then u crated from this orginal ks conf file the iso and u were logged on to console with root automatically?
By the way what version of lorax are u using?
And also u wrote u git a graphical screen...did u mean console,right? This is the minimal ks conf we are talking about.

Sorry I used the livedvd kickstart. When I removed the graphical groups x11 stuf, I got a login prompt on a console where I only had to give the username and had to leave the password empty.

i want to keep my iso file as small as it could be that why i used this /usr/share/doc/lorax-19.6.51/rhel7-minimal.ks configuration file for it only installs the core packages and produce a bootable iso around 300 - 400 MB.
can you please try with this specific template and see if you get the issue i reported?
thanks in advance for your efforts.

quick update on my latest discovery on this issue:
i manage to grab an error message when tried to login and I saw this error:

-- root: no shell: permission denied

This brought me to a quick solution implemented in the ks configuring file:
I've disable selinux while creating the boot iso:

selinux --disabled

I also thought that my system that I was creating the iso might be "dirty" and might cause issues creating the boot iso file.
So I completely installed new redhat 7.1 whiteout any configurations or different packages but just fully updated.
I then tried the same process with the default minimal KS except for the repo and to my surprise it work without an issue.
I was able to login with root.

So I guess my old system together with the selinux somehow affected the iso creations.

Hopefully this post will help someone.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.