[Fedora-livecd-list] building an automatic installer with livecd-creator
Holger Levsen
holger at layer-acht.org
Thu May 10 16:05:18 UTC 2007
Hi,
I'm trying to build an installer-cd with livecd-creator :)
So I finally succeeded to build a livecd with livecd-creator under fedora7.
When I boot this CD, I switch to the text-console, log in (into textmode) as
root, run
/etc/init.d/messagebus start
/etc/init.d/haldaemon start
and run the liveinst.sh script from anacondas CVS
anaconda/liveinst/liveinst.sh (downloaded with curl.. for now)
(I plan to put these steps into /etc/rc.d/init.d/fedora-live but for debugging
it's easier to run them manually.)
Then I configure anaconda manually (currently just using the defaults, which,
again, I later plan to do with a kickstart file) and anaconda successfully
partitions the disc and copies the system from the livecd to harddrive.
But in the end the installation fails, log is attached.
I would be happy if someone who is more familar with anaconda logs can tell me
what went wrong...
regards,
Holger
-------------- next part --------------
Traceback (most recent call first):
File "/usr/lib/anaconda/livecd.py", line 216, in _doFilesystemMangling
wait.refresh()
File "/usr/lib/anaconda/livecd.py", line 279, in doPostInstall
self._doFilesystemMangling(anaconda)
File "/usr/lib/anaconda/backend.py", line 233, in doPostInstall
anaconda.backend.doPostInstall(anaconda)
File "/usr/lib/anaconda/dispatch.py", line 203, in moveStep
rc = stepFunc(self.anaconda)
File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext
self.moveStep()
File "/usr/lib/anaconda/text.py", line 605, in run
anaconda.dispatch.gotoNext()
File "/usr/sbin/anaconda", line 955, in <module>
anaconda.intf.run(anaconda)
TypeError: refresh() takes no arguments (1 given)
Local variables in innermost frame:
tocopy: /boot
self: <livecd.LiveCDCopyBackend instance at 0x9571acc>
r: fsentry -- device: VolGroup00/LogVol00 mountpoint: /
fsystem: ext3 format: 1
ismounted: 1 options: 'defaults'
bytesPerInode: 4096 label: /
anaconda: <__main__.Anaconda instance at 0xb7f6e7cc>
entry: fsentry -- device: sda1 mountpoint: /boot
fsystem: ext3 format: 1
ismounted: 1 options: 'defaults'
bytesPerInode: 4096 label: /boot
wait: <text.WaitWindow instance at 0x96124ec>
Anaconda instance, containing members:
rootPath: /mnt/sysimage
rescue_mount: True
intf: InstallInterface instance, containing members:
intf.screen: SnackScreen instance, containing members:
intf.screen.width: 80
intf.screen.helpCb: <bound method InstallInterface.helpWindow of <text.InstallInterface instance at 0x9567f4c>>
intf.screen.height: 25
intf.instLanguage: Language instance, containing members:
intf.instLanguage.targetLang: None
intf.instLanguage.default: en_US.UTF-8
intf.instLanguage.displayMode: t
intf.instLanguage.current: en_US.UTF-8
intf.showingHelpOnHelp: 0
rescue: False
updateSrc: None
methodstr: livecd:///dev/live-osimg
dispatch: Dispatcher instance, containing members:
dispatch.skipSteps: {'upgradecontinue': 1, 'group-selection': 1, 'findrootparts': 1, 'findinstall': 1, 'language': 2, 'upgradeswapsuggestion': 1, 'confirmupgrade': 1, 'tasksel': 1, 'upgrademount': 1, 'upgbootloader': 1, 'upgrademigfind': 1, 'addswap': 1, 'upgrademigratefs': 1, 'regkey': 1}
dispatch.method: LiveCDImageMethod instance, containing members:
dispatch.method.splitmethod: False
dispatch.method.intf: Already dumped
dispatch.method.tree: None
dispatch.method.rootPath: /mnt/sysimage
dispatch.method.osimg: //dev/live-osimg
dispatch.step: 39
dispatch.anaconda: Already dumped
dispatch.firstStep: 0
dispatch.dir: 1
method: Already dumped
isKickstart: False
id: InstallData instance, containing members:
id.firewall: Firewall instance, containing members:
id.firewall.portlist: [22:tcp]
id.firewall.trustdevs: []
id.firewall.enabled: 1
id.rootParts: None
id.instProgress: None
id.upgradeRoot: None
id.xsetup: XSetup instance, containing members:
id.xsetup.skipx: 0
id.xsetup.xserver: XServer instance, containing members:
id.xsetup.xserver.videohw: primary: 0
vidCards: [<rhpxl.videocard.VideoCard instance at 0x956756c>]
Primary Video Card Info:
device: None
driver : vesa
descr : InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
vidRam: None
id.xsetup.xserver.serverflags: [vt6, -config, /tmp/XConfig.test, -extension, Composite, -s, 1440, -dpms, -v, -ac, -nolisten, tcp]
id.xsetup.xserver.resolution: 800x600
id.xsetup.xserver.root: /
id.xsetup.xserver.hwstate: XF86HardwareState instance, containing members:
id.xsetup.xserver.hwstate.videocard_PCIFn: None
id.xsetup.xserver.hwstate.monitor: monName: None
monID: Unprobed Monitor
monHoriz: None
monVert: None
physicalWidth: 0
physicalHeight: 0
id.xsetup.xserver.hwstate.config_resolutions: []
id.xsetup.xserver.hwstate.videocard_name: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
id.xsetup.xserver.hwstate.monitor_name: Unknown monitor
id.xsetup.xserver.hwstate.video_ram: 0
id.xsetup.xserver.hwstate.videocard: Already dumped
id.xsetup.xserver.hwstate.videocard_driver: vesa
id.xsetup.xserver.hwstate.videocard_options: []
id.xsetup.xserver.hwstate.all_resolutions: [640x480, 800x480, 800x512, 800x600, 848x480, 854x480, 1024x600, 1024x768, 1152x768, 1152x864, 1200x900, 1280x720, 1280x800, 1280x854, 1280x960, 1280x1024, 1360x768, 1400x900, 1400x1050, 1440x900, 1600x1024, 1600x1200, 1680x1050, 1900x1200, 1920x1080, 1920x1200, 1920x1440, 2048x1536, 2560x1600]
id.xsetup.xserver.hwstate.hsync: 31.5-37.9
id.xsetup.xserver.hwstate.vsync: 50-70
id.xsetup.xserver.hwstate.probed_video_ram: 0
id.xsetup.xserver.hwstate.videocard_PCIBus: None
id.xsetup.xserver.hwstate.colordepth: 24
id.xsetup.xserver.hwstate.videocard_PCIDev: None
id.xsetup.xserver.hwstate.resolution: 800x600
id.xsetup.xserver.hwstate.dri_enabled: 0
id.xsetup.xserver.hwstate.xconfig: None
id.xsetup.xserver.monitorhw: Already dumped
id.xsetup.xserver.keyboard: Keyboard instance, containing members:
id.xsetup.xserver.keyboard.info: {'KEYBOARDTYPE': pc, 'KEYTABLE': de}
id.xsetup.xserver.keyboard.type: PC
id.xsetup.xserver.keyboard.beenset: 1
id.xsetup.xserver.keyboard._mods: KeyboardModels instance, containing members:
id.xsetup.xserver.mousehw: FULLNAME="Generic - 3 Button Mouse (PS/2)"
MOUSETYPE="imps2"
XEMU3="no"
XMOUSETYPE="IMPS/2"
id.xsetup.xserver.defaultdepth: 24
id.xsetup.xserver.logfile: /dev/null
id.xsetup.xserver.config: None
id.xsetup.xserver.display: :9
id.xsetup.anaconda: Already dumped
id.keyboard: Already dumped
id.timezone: Timezone instance, containing members:
id.timezone.utc: True
id.timezone.arc: 0
id.timezone.tz: America/New_York
id.mouse: Already dumped
id.zfcp: ZFCP instance, containing members:
id.zfcp.hasReadConfig: True
id.zfcp.fcpdevs: []
id.upgrade: None
id.monitor: Already dumped
id.iscsi: <iscsi.iscsi object at 0x957820c>
id.methodstr: livecd:///dev/live-osimg
id.fsset: FileSystemSet instance, containing members:
id.fsset.messageWindow: <bound method InstallInterface.messageWindow of <text.InstallInterface instance at 0x9567f4c>>
id.fsset.volumesCreated: 1
id.fsset.progressWindow: <bound method InstallInterface.progressWindow of <text.InstallInterface instance at 0x9567f4c>>
id.fsset.migratedfs: 1
id.fsset.waitWindow: <bound method InstallInterface.waitWindow of <text.InstallInterface instance at 0x9567f4c>>
id.fsset.entries: [fsentry -- device: VolGroup00/LogVol00 mountpoint: /
fsystem: ext3 format: 1
ismounted: 1 options: 'defaults'
bytesPerInode: 4096 label: /
, fsentry -- device: sda1 mountpoint: /boot
fsystem: ext3 format: 1
ismounted: 1 options: 'defaults'
bytesPerInode: 4096 label: /boot
, fsentry -- device: shm mountpoint: /dev/shm
fsystem: tmpfs format: 0
ismounted: 0 options: 'defaults'
bytesPerInode: 4096 label: None
, fsentry -- device: devpts mountpoint: /dev/pts
fsystem: devpts format: 0
ismounted: 0 options: 'gid=5,mode=620'
bytesPerInode: 4096 label: None
, fsentry -- device: sys mountpoint: /sys
fsystem: sysfs format: 0
ismounted: 1 options: 'defaults'
bytesPerInode: 4096 label: None
, fsentry -- device: proc mountpoint: /proc
fsystem: proc format: 0
ismounted: 1 options: 'defaults'
bytesPerInode: 4096 label: None
, fsentry -- device: VolGroup00/LogVol01 mountpoint: swap
fsystem: swap format: 1
ismounted: 1 options: 'defaults'
bytesPerInode: 4096 label: None
, fsentry -- device: VolGroup00 mountpoint: None
fsystem: volume group (LVM) format: 1
ismounted: 0 options: 'defaults'
bytesPerInode: 4096 label: None
, fsentry -- device: sda2 mountpoint: None
fsystem: physical volume (LVM) format: 1
ismounted: 0 options: 'defaults'
bytesPerInode: 4096 label: None
]
id.fsset.mountcount: 9
id.desktop: Desktop instance, containing members:
id.desktop.info: {}
id.desktop.runlevel: 3
id.x_already_set: 0
id.backend: LiveCDCopyBackend instance, containing members:
id.backend.modeText:
id.backend.instPath: /mnt/sysimage
id.backend.supportsPackageSelection: False
id.backend.instLog: None
id.backend.supportsUpgrades: False
id.backend.method: Already dumped
id.firstboot: 0
id.diskset: DiskSet instance, containing members:
id.diskset.disks: {'sda': <PedDisk object at 0x94223e0>}
id.diskset.anaconda: Already dumped
id.diskset.onlyPrimary: None
id.users: None
id.displayMode: t
id.auth: --enableshadow --enablemd5
id.ksdata: None
id.bootloader: x86BootloaderInfo instance, containing members:
id.bootloader.doUpgradeOnly: 0
id.bootloader.above1024: 0
id.bootloader.defaultDevice: mbr
id.bootloader.pure: None
id.bootloader.serialDevice: None
id.bootloader.args: KernelArguments instance, containing members:
id.bootloader.args.args:
id.bootloader.kernelLocation: /boot/
id.bootloader.device: sda
id.bootloader.configfile: /etc/lilo.conf
id.bootloader.kickstart: 0
id.bootloader.serialOptions: None
id.bootloader.useGrubVal: 1
id.bootloader._drivelist: [sda]
id.bootloader.images: BootImages instance, containing members:
id.bootloader.images.default: VolGroup00/LogVol00
id.bootloader.images.images: {'VolGroup00/LogVol00': ('linux', 'Fedora', 'ext3')}
id.bootloader.serial: 0
id.bootloader.password: None
id.bootloader.forceLBA32: False
id.extraModules: []
id.network: Network instance, containing members:
id.network.hostname: olpc-server
id.network.overrideDHCPhostname: 1
id.network.netdevices: {'eth0': DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=08:00:27:66:6C:FF
IPV6_AUTOCONF=yes
ONBOOT=yes
}
id.network.primaryNS: 10.0.2.3
id.network.firstnetdevice: eth0
id.network.isConfigured: 0
id.network.domains: []
id.network.secondaryNS:
id.network.gateway:
id.instClass: DefaultInstall instance, containing members:
id.floppyDevice: fd0
id.partitions: Partitions instance, containing members:
id.partitions.useFdisk: 0
id.partitions.useAutopartitioning: 1
id.partitions.autoClearPartType: 0
id.partitions.nextUniqueID: 11
id.partitions.reinitializeDisks: 0
id.partitions.autoClearPartDrives: [sda]
id.partitions.zeroMbr: 0
id.partitions.isKickstart: 0
id.partitions.requests: [New Part Request -- mountpoint: /boot uniqueID: 9
type: ext3 format: 1 badblocks: None
device: sda1 drive: ['sda'] primary: None
size: 100 grow: 0 maxsize: None
start: None end: None migrate: None fslabel: None origfstype: None
bytesPerInode: 4096 options: 'None'
, LV Request -- mountpoint: None uniqueID: 10
type: swap format: 1 badblocks: None
size: 1024 lvname: LogVol01 volgroup: 7
bytesPerInode: 4096 options: 'None'
, VG Request -- name: VolGroup00 uniqueID: 7
format: 1 pesize: 32768
physvols: [6]
, LV Request -- mountpoint: / uniqueID: 8
type: ext3 format: 1 badblocks: None
size: 6816 lvname: LogVol00 volgroup: 7
bytesPerInode: 4096 options: 'None'
, New Part Request -- mountpoint: None uniqueID: 6
type: physical volume (LVM) format: 1 badblocks: None
device: sda2 drive: ['sda'] primary: None
size: 0 grow: 1 maxsize: None
start: None end: None migrate: None fslabel: None origfstype: None
bytesPerInode: 4096 options: 'None'
]
id.partitions.autoPartitionRequests: [New Part Request -- mountpoint: None uniqueID: None
type: physical volume (LVM) format: 1 badblocks: None
device: None drive: None primary: None
size: 0 grow: 1 maxsize: None
start: None end: None migrate: None fslabel: None origfstype: None
bytesPerInode: 4096 options: 'None'
, VG Request -- name: lvm uniqueID: None
format: 1 pesize: 32768
physvols: []
, LV Request -- mountpoint: / uniqueID: None
type: ext3 format: 1 badblocks: None
size: 1024 lvname: LogVol00 volgroup: lvm
bytesPerInode: 4096 options: 'None'
, New Part Request -- mountpoint: /boot uniqueID: None
type: ext3 format: 1 badblocks: None
device: None drive: None primary: None
size: 100 grow: 0 maxsize: None
start: None end: None migrate: None fslabel: None origfstype: None
bytesPerInode: 4096 options: 'None'
, LV Request -- mountpoint: None uniqueID: None
type: swap format: 1 badblocks: None
size: 512 lvname: LogVol01 volgroup: lvm
bytesPerInode: 4096 options: 'None'
]
id.partitions.deletes: [lvname: LogVol01 vgname: VolGroup00
, drive: sda start: 208845 end: 16370234
, drive: sda start: 63 end: 208844
, vgname: VolGroup00
, lvname: LogVol00 vgname: VolGroup00
]
id.isHeadless: 0
id.videocard: Already dumped
id.instLanguage: Already dumped
id.security: Security instance, containing members:
id.security.selinux: 1
id.upgradeSwapInfo: None
dir: 1
backend: Already dumped
/tmp/anaconda.log:
15:57:44 INFO : using only installclass _Fedora
15:57:44 INFO : anaconda called with cmdline = ['/usr/sbin/anaconda', '--method=livecd:///dev/live-osimg', '--lang', 'en_US.UTF-8']
15:57:44 INFO : Display mode = g
15:57:44 INFO : Method = livecd:///dev/live-osimg
15:57:44 INFO : anaconda floppy device fd0
15:57:47 WARNING : Graphical installation not available... Starting text mode.
15:57:50 INFO : Detected 512M of memory
15:57:50 INFO : Swap attempt of 512M to 1024M
15:57:50 WARNING : step installtype does not exist
15:57:50 WARNING : step complete does not exist
15:57:50 INFO : moving (1) to step welcome
15:57:54 INFO : moving (1) to step betanag
15:57:56 INFO : moving (1) to step keyboard
15:57:59 ERROR : Could not install keymap de: Permission denied
15:57:59 INFO : moving (1) to step partitionobjinit
15:57:59 INFO : no /tmp/fcpconfig; not configuring zfcp
15:57:59 DEBUG : starting mpaths
15:57:59 DEBUG : self.driveList(): ['sda']
15:57:59 DEBUG : DiskSet.skippedDisks: []
15:57:59 DEBUG : DiskSet.skippedDisks: []
15:57:59 DEBUG : starting all mpaths on drives ['sda']
15:57:59 DEBUG : scanning for multipath on drives ['sda']
15:58:00 DEBUG : mpaths: []
15:58:00 DEBUG : done starting mpaths. Drivelist: ['sda']
15:58:00 DEBUG : starting dmraids
15:58:00 DEBUG : self.driveList(): ['sda']
15:58:00 DEBUG : DiskSet.skippedDisks: []
15:58:00 DEBUG : DiskSet.skippedDisks: []
15:58:00 DEBUG : starting all dmraids on drives ['sda']
15:58:00 DEBUG : scanning for dmraid on drives ['sda']
15:58:00 DEBUG : done starting dmraids. Drivelist: ['sda']
15:58:03 INFO : lv is VolGroup00/LogVol00, size of 6816
15:58:03 INFO : lv is VolGroup00/LogVol01, size of 1024
15:58:10 INFO : pv is /dev/sda2 in vg VolGroup00, size is 7891
15:58:10 INFO : vg VolGroup00, size is 7872, pesize is 32768
15:58:13 INFO : lv is VolGroup00/LogVol00, size of 6816
15:58:13 INFO : lv is VolGroup00/LogVol01, size of 1024
15:58:15 INFO : scd0 is a protected partition
15:58:15 INFO : no request, probably a removable drive
15:58:15 INFO : moving (1) to step parttype
15:58:25 INFO : moving (1) to step autopartitionexecute
15:58:27 DEBUG : used space is 1536
15:58:27 DEBUG : actual space is 7840
15:58:27 DEBUG : used space is 2048
15:58:27 DEBUG : actual space is 7840
15:58:27 DEBUG : used space is 7840
15:58:27 DEBUG : actual space is 7840
15:58:27 DEBUG : used space is 7840
15:58:27 DEBUG : actual space is 7840
15:58:27 INFO : moving (1) to step partition
15:58:30 INFO : moving (1) to step partitiondone
15:58:30 INFO : moving (1) to step bootloadersetup
15:58:30 INFO : moving (1) to step bootloader
15:58:41 INFO : moving (1) to step bootloaderadvanced
15:58:45 INFO : moving (1) to step networkdevicecheck
15:58:45 INFO : moving (1) to step network
15:59:04 INFO : moving (1) to step timezone
15:59:07 INFO : moving (1) to step accounts
15:59:11 INFO : moving (1) to step reposetup
15:59:11 INFO : moving (1) to step basepkgsel
15:59:11 INFO : moving (1) to step postselection
15:59:11 INFO : moving (1) to step confirminstall
15:59:14 INFO : moving (1) to step install
15:59:14 INFO : moving (1) to step enablefilesystems
15:59:17 INFO : lv is VolGroup00/LogVol00, size of 6816
15:59:17 INFO : lv is VolGroup00/LogVol01, size of 1024
15:59:17 INFO : removing lv LogVol01
15:59:17 INFO : removing lv LogVol00
15:59:18 INFO : pv is /dev/sda2 in vg VolGroup00, size is 7891
15:59:18 INFO : vgremove -v VolGroup00
15:59:18 INFO : pvremove -ff -y -v /dev/sda2
15:59:19 INFO : pvcreate -ff -y -v /dev/sda2
15:59:27 INFO : formatting swap as swap
15:59:27 INFO : formatting / as ext3
15:59:27 INFO : Format command: ['mke2fs', '/dev/VolGroup00/LogVol00', '-i', '4096', '-j']
15:59:56 INFO : formatting /boot as ext3
15:59:56 INFO : Format command: ['mke2fs', '/tmp/sda1', '-i', '4096', '-j']
16:00:02 INFO : lv is VolGroup00/LogVol00, size of 6816
16:00:02 INFO : lv is VolGroup00/LogVol01, size of 1024
16:00:03 ERROR : running vgchange failed: 5
16:00:05 DEBUG : error reading swap label on /dev/VolGroup00: [Errno 21] Is a directory
16:00:05 DEBUG : error reading xfs label on /dev/VolGroup00: [Errno 21] Is a directory
16:00:05 DEBUG : error reading jfs label on /dev/VolGroup00: [Errno 21] Is a directory
16:00:05 DEBUG : error reading reiserfs label on /dev/VolGroup00: [Errno 21] Is a directory
16:00:05 INFO : trying to mount VolGroup00/LogVol00 on /
16:00:05 INFO : set SELinux context for mountpoint / to system_u:object_r:root_t
16:00:05 DEBUG : isys.py:mount()- going to mount /dev/VolGroup00/LogVol00 on /mnt/sysimage
16:00:05 INFO : trying to mount sda1 on /boot
16:00:05 INFO : set SELinux context for mountpoint /boot to system_u:object_r:boot_t
16:00:05 DEBUG : isys.py:mount()- going to mount /tmp/sda1 on /mnt/sysimage/boot
16:00:05 INFO : trying to mount sys on /sys
16:00:06 INFO : set SELinux context for mountpoint /sys to None
16:00:06 DEBUG : isys.py:mount()- going to mount sys on /mnt/sysimage/sys
16:00:06 INFO : trying to mount proc on /proc
16:00:06 INFO : set SELinux context for mountpoint /proc to None
16:00:06 DEBUG : isys.py:mount()- going to mount proc on /mnt/sysimage/proc
16:00:11 INFO : moving (1) to step migratefilesystems
16:00:11 INFO : moving (1) to step setuptime
12:00:12 INFO : moving (1) to step preinstallconfig
12:00:12 INFO : moving (1) to step installpackages
12:00:12 INFO : Preparing to install packages
12:16:12 INFO : moving (1) to step postinstallconfig
12:16:12 INFO : doing post-install fs mangling
12:16:12 INFO : trying to mount VolGroup00/LogVol00 on /
12:16:13 INFO : set SELinux context for mountpoint / to system_u:object_r:root_t
12:16:13 DEBUG : isys.py:mount()- going to mount /dev/VolGroup00/LogVol00 on /mnt/sysimage
12:16:13 INFO : trying to mount sda1 on /boot
12:16:13 INFO : set SELinux context for mountpoint /boot to system_u:object_r:boot_t
12:16:13 DEBUG : isys.py:mount()- going to mount /tmp/sda1 on /mnt/sysimage/boot
12:16:13 INFO : trying to mount sys on /sys
12:16:13 INFO : set SELinux context for mountpoint /sys to None
12:16:13 DEBUG : isys.py:mount()- going to mount sys on /mnt/sysimage/sys
12:16:13 INFO : trying to mount proc on /proc
12:16:13 INFO : set SELinux context for mountpoint /proc to None
12:16:13 DEBUG : isys.py:mount()- going to mount proc on /mnt/sysimage/proc
/tmp/lvmout:
Finding all logical volumes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-livecd-list/attachments/20070510/0c8f2e1f/attachment.sig>
More information about the Fedora-livecd-list
mailing list