8000 GitHub - schaten/os-install: Initiate the installation of any linux, given grub2.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

schaten/os-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installing linux from linux

This role triggers a reinstallation of the operating system.

Currently, only MBR-systems are supported (..). First, kernel and initrd are copied to the remote host, then the grub.cfg is edited to start the installation on reboot.

--- this can (obviously) break your system. ---

Usage:

First, create a directory holding the playbook (example see below) you're going to use to trigger a reinstallation and enter it. Then get the files neccessary for installation, e.g.:

repo="http://ftp.gwdg.de/pub/linux/fedora/linux/releases/27/Server/x86_64/os"
wget $repo/images/pxeboot/vmlinuz -O boot/vmlinuz-install
wget $repo/images/pxeboot/initrd.img -O boot/initrd-install

You will need a kickstart- (fedora)/preseed- /... file to automate your installation. It should be possible to include it in the boot-directory somehow. Then, execute the following:

Example playbook:

  hosts: {{target}}
  vars:
    - kparams:
      - name: inst.ks
        value: "http://laptop.local/fc27.ks"
      - name: inst.stage2
        value: "http://ftp.gwdg.de/pub/linux/fedora/linux/releases/27/Server/x86_64/os"
      - name: inst.repo
        value: "http://ftp.gwdg.de/pub/linux/fedora/linux/releases/27/Everything/x86_64/os"
      - name: inst.text 
  roles: [{'role': os-install}]

About

Initiate the installation of any linux, given grub2.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0