On 05/20/2013 07:40 PM, Joey Boggs wrote:
On 05/18/2013 12:07 AM, Gareth wrote:
I need reset raid card before installing a system, and all of progress need be automatic.

So I need a pxe environment to boot a livecd. In that, auto-script will reset raid card with different tools installed in livecd.

Further more, a node could response pxe server to change its own grub to install system on own drive. It's ok, but I want to make this progress more simple. I think what I want is just a drive, like /dev/sda. All of data in this drive is in kind of data in livecd, except MBR.

I rsync the file system with its data and fail after reboot. So I'm trying get to know how to set MBR.

You'll need to setup grub to set the mbr.

/sbin/grub2-install /dev/sda

I haven't had the chance to try it yet but it should work fine pending everything being in place within ext3fs.img





On Fri, May 17, 2013 at 11:42 PM, Jiang Jim <[email protected] <mailto:[email protected]>> wrote:

    I think he means to using anacoda-based installer to install
    centos system in a livecd.
    I am also confused about how to use anacoda to install a system
    to hard-disk in a livecd when i do not have a graph user interface.


    2013/5/17 Scott Dowdle <[email protected]
    <mailto:[email protected]>>

        Greetings,

        ----- Original Message -----
        > My problem is to install a system, Fedora or Centos, on a
        hard drive.
        > I have used rsync the data in ext3fs.img to a new hard
        drive, and
        > find data is right but I can't boot from the new drive. So
        I want to
        > know how MBR is set in livecd-tools.

        I'm still clueless as to what you are doing.  Are you booting
        from live media (CD or USB drive) and using the
        Anaconda-based installer to install?  Why are you rsyncing
        ext3fs.img?  I don't get it.

        Are you trying to write your own installer?

        TYL,
        --
        Scott Dowdle
        704 Church Street
        Belgrade, MT 59714
        (406)388-0827 [home]
        (406)994-3931 [work]
        --
        livecd mailing list
        [email protected]
        <mailto:[email protected]>
        https://admin.fedoraproject.org/mailman/listinfo/livecd



    --
    livecd mailing list
    [email protected]
    <mailto:[email protected]>
    https://admin.fedoraproject.org/mailman/listinfo/livecd




--
Gareth

/Cloud Computing, OpenStack, Fitness, Basketball/
/OpenStack contributor/
/Company: UnitedStack <http://www.ustack.com>/
/My promise: if you find any spelling or grammar mistakes in my email from Mar 1 2013, notify me /
/and I'll donate $1 or ¥1 to an open organization you specify./


--
livecd mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/livecd



--
livecd mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/livecd

This is actually quite a bit more work. From start to finish. Taking some code from ovirt-node project since we do quite a bit of this work but we remain in livecd format using persistent storage off to the side.

- partition drives
- make the filesystems
- mount the cd
- mount initrd0.img
- mount the ext3fs inside initrd0
- mount the boot/root fs' root to /liveos for examples below
- rsync ext3fs.img contents to /liveos
#### you're somwhere in here ####
- mount /dev/sda1 to /liveos/boot
- grub2-install /dev/sda --boot-directory=/liveos
- create a grub.cfg file
    example grub.cfg:
#default saved
set timeout=5
#hiddenmenu
menuentry "example entry {
set root=(hd0,%(partN)d)
linux /vmlinuz0 %(root_param)s %(bootparams)s
initrd /initrd0.img
}"""

- you still need to copy vmlinuz0 and copy the initrd to /liveos/boot or /liveos if you keep just one partition and adjust grub.cfg file paths.


It can be done but it is quite a bit of manual work unless you script it. Why not just create a livecd that resets the machine, then boot it the second time with kickstart to do the installation? Are you just trying to do it all at once?
--
livecd mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/livecd

Reply via email to