Skip to content

When doing a kickstart script install, a package that modifies the timezone may cause anaconda to crash. #1779

@KimEbert42

Description

@KimEbert42

This may be an upstream issue that has been solved in a later release.

Example kickstart script:

Kickstart script for the Webapp

version=6

install

url --url=http://10.10.10.50/mirror/CentOS/6/os/x86_64

repo --name=customrepo --baseurl=http://somewhere
lang en_US.UTF-8
keyboard us
network --bootproto dhcp --noipv6
rootpw --iscrypted XaTsKD57f6RMU
authconfig --enableshadow --passalgo=sha512 --disablefingerprint
selinux --enforcing
timezone --utc America/Boise
bootloader --location=mbr --driveorder=hda
reboot --eject
firstboot --enable
services --disabled=network --enabled=NetworkManager

%packages
@base
@core

system administration tools

crypto-utils
firstboot
httpd
mysql
mysql-server
mod_ssl
NetworkManager
openssl
openssh-clients
php
php-xml
php-mysql
rsync
system-config-firewall-tui
system-config-network-tui
setuptool
screen
vim

custom-package

Example custom package POST script.

%post

rm -f /etc/localtime.bak
cp -f /etc/localtime /etc/localtime.bak
rm -f /etc/localtime
ln -s /usr/share/zoneinfo/UTC /etc/localtime

Anaconda crashes with

Read-only file system: '/mnt/sysimage/etc/localtime'

Upon examining the file, it is a symlink to

ln -s /usr/share/zoneinfo/UTC /etc/localtime

Although it probably makes sense for the kickstart script and rpm to agree on timezones.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions