Preseeded mini.iso fails to install grub
Worth, Kevin
kevin.worth at hp.com
Fri Nov 9 23:59:59 GMT 2007
Anyone have an idea why the following preseed fails to install grub? I
am using
the current 7.04 mini.iso. I started with
https://help.ubuntu.com/7.04/installation-guide/example-preseed.txt
and modified to my needs. The message I get is
The grub package failed to install into /target/...(followed by
an explanation about
how this is bad)
GRUB installation failed. Continue anyway?
Go Back Yes No
I found that I could hit Alt-F2 and do a chroot /target apt-get install
grub,
then switch back to the installer and hit "continue" and it runs
grub-installer and
works. As a workaround, I can add
d-i pkgsel/include string grub
to the preseed, then I don't have to do the Alt-F2/apt-get process, but
I still get the
error and have to hit continue. It works but it isn't unattended.
At the suggestion of evand in #ubuntu-installer, I tried this on a
non-preseeded mini.iso
and did not encounter this error. Is this a bug or am I missing
something?
Thanks!
Kevin
### Localization
# Locale sets language and country.
d-i debian-installer/locale string en_US
# Keyboard selection.
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us
### Network configuration
# netcfg will choose an interface that has link if possible. This makes
it
# skip displaying a list if there is more than one interface.
d-i netcfg/choose_interface select auto
# Any hostname and domain names assigned from dhcp take precedence over
# values set here. However, setting the values still prevents the
questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
### Mirror settings
d-i mirror/country string enter information manually
d-i mirror/http/hostname string linuxcoe.corp.hp.com
d-i mirror/http/directory string /linuxcoe/ubuntu
d-i mirror/http/proxy string
# Suite to install.
d-i mirror/suite string feisty
# Suite to use for loading installer components (optional).
d-i mirror/udeb/suite string feisty
### Partitioning
# Alternatively, you can specify a disk to partition. The device name
# can be given in either devfs or traditional non-devfs format.
# For example, to use the first disk:
d-i partman-auto/disk string /dev/sda
# In addition, you'll need to specify the method to use.
# The presently available methods are: "regular", "lvm" and "crypto"
d-i partman-auto/method string regular
# If one of the disks that are going to be automatically partitioned
# contains an old LVM configuration, the user will normally receive a
# warning. This can be preseeded away...
d-i partman-auto/purge_lvm_from_device boolean true
# And the same goes for the confirmation to write the lvm partitions.
d-i partman-lvm/confirm boolean true
# You can choose from any of the predefined partitioning recipes.
# Note: this must be preseeded with a localized (translated) value.
d-i partman-auto/choose_recipe \
select All files in one partition (recommended for new users)
# This makes partman automatically partition without confirmation.
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition \
select Finish partitioning and write changes to disk
d-i partman/confirm boolean true
### Clock and time zone setup
# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true
# You may set this to any valid setting for $TZ; see the contents of
# /usr/share/zoneinfo/ for valid values.
d-i time/zone string US/Pacific
### Apt setup
# You can choose to install restricted and universe software, or to
install
# software from the backports repository.
d-i apt-setup/restricted boolean true
d-i apt-setup/universe boolean true
#d-i apt-setup/backports boolean true
# Uncomment this if you don't want to use a network mirror.
#d-i apt-setup/use_mirror boolean false
# Uncomment this to avoid adding security sources, or
# add a hostname to use a different server than security.ubuntu.com.
d-i apt-setup/security_host string linuxcoe.corp.hp.com/linuxcoe
### Account setup
# Skip creation of a root account (normal user account will be able to
# use sudo).
#d-i passwd/root-login boolean false
d-i passwd/root-login boolean true
# Alternatively, to skip creation of a normal user account.
d-i passwd/make-user boolean false
# Root password, either in clear text
d-i passwd/root-password password changeme
d-i passwd/root-password-again password changeme
# or encrypted using an MD5 hash.
#d-i passwd/root-password-crypted password [MD5sum]
### Boot loader installation
# This is fairly safe to set, it makes grub install automatically to the
MBR
# if no other operating system is detected on the machine.
d-i grub-installer/only_debian boolean true
# This one makes grub-installer install to the MBR if it also finds some
other
# OS, which is less safe as it might not be able to boot that other OS.
d-i grub-installer/with_other_os boolean true
### Package selection
tasksel tasksel/first multiselect ubuntu-standard
# Only install the standard system and language packs.
d-i pkgsel/language-pack-patterns string
# No language support packages.
d-i pkgsel/install-language-support boolean false
# Individual additional packages to install
d-i pkgsel/include string vlan openssh-server postgresql-8.2
debian-helper-scripts squid3
# Some versions of the installer can report back on what software you
have
# installed, and what software you use. The default is not to report
back,
# but sending reports helps the project determine what software is most
# popular and include it on CDs.
popularity-contest popularity-contest/participate boolean false
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-installer/attachments/20071109/c0286324/attachment.htm
More information about the Ubuntu-installer
mailing list