Code Monkey home page Code Monkey logo

getch's Introduction

getch's People

Contributors

szorfein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

getch's Issues

Add options to spectify disk sizes?

Changing the default size of the boot partition was easy.
Also, doing the same for the root lvm is easy. Never the less, messing around with ruby code feels uncomfortable.
Would you consider adding CLI files for that or adding a configuration file?

Failure to install with problem opening /dev/false

Hi,

I was trying to test this gem in VM, but failed with the following error:

root@ubuntu:/home/ubuntu# getch -d vda 

Build Gentoo Linux with the following args:

	Lang: en_US
	Timezone: UTC
	Keymap: us
	Disk: vda
	Filesystem: ext4
	Username: false
	Encrypt: false
	Musl: false

	separate-boot disk: false
	separate-cache disk: false
	separate-home disk: false

Continue? (y,N) y

Partition and format disk vda, this will erase all data, continue? (y,N) y
I >>> 24 Exec: sgdisk -Z /dev/vda				[ ok ]
I >>> 27 Exec: wipefs --all /dev/vda				[ ok ]
I >>> 49 Exec: dd if=/dev/zero of=/dev/vda bs=1M count=100	[ ok ]
I >>> 45 Exec: sgdisk -n1:1M:+260M -t1:ef00 /dev/false		
D [5981] > Problem opening /dev/false for reading! Error is 2.

D [5981] > The specified file does not exist!

E > sgdisk -n1:1M:+260M -t1:ef00 /dev/false - pid 5993 exit 2	
F > Running sgdisk -n1:1M:+260M -t1:ef00 /dev/false

How to deal with root partition full on arch installation media?

Maybe the wrong tree to bark at ... I recently tried using arch linux media to use this installer.
The installer of arch now completely copies itself to the RAM and there is no possibility to add ruby with pacman.
Hence, I am not sure if it's OK to recommend it...

fail to install with lvm and encryption

ubuntu@ubuntu:~$ sudo getch --format ext4 --lvm --encrypt -d vda --restart
Initialize states
Init devs at /tmp/getch_devs.yaml

Build Gentoo Linux with the following args:

	Lang: en_US
	Timezone: UTC
	Keymap: us
	Disk: vda
	Filesystem: ext4
	Username: false
	Encrypt: true
	Musl: false

	separate-boot disk: false
	separate-cache disk: false
	separate-home disk: false

Continue? (y,N) y

Partition and format disk vda, this will erase all data, continue? (y,N) y
I >>> 24 Exec: sgdisk -Z /dev/vda				[ ok ]
I >>> 27 Exec: wipefs --all /dev/vda				[ ok ]
I >>> 49 Exec: dd if=/dev/zero of=/dev/vda bs=1M count=100	[ ok ]
I >>> 45 Exec: sgdisk -n1:1MiB:+1MiB -t1:ef02 /dev/vda		[ ok ]
I >>> 44 Exec: sgdisk -n2:0:+256MiB -t2:8309 /dev/vda		[ ok ]
I >>> 24 Exec: sgdisk -E /dev/vda				[ ok ]
I >>> 45 Exec: sgdisk -n3:0:52426751 -t3:8309 /dev/vda		[ ok ]
I >>> 34 Exec: blockdev --getpbsz /dev/vda2			[ ok ]
I >>> 31 Encrypting boot-luks > vda2...

WARNING!
========
This will overwrite data on /dev/vda2 irrevocably.

Are you sure? (Type 'yes' in capital letters): YES
Enter passphrase for /dev/vda2: 
Verify passphrase: 
I >>> 28 Opening boot-luks > vda2...
Enter passphrase for /dev/vda2: 
I >>> 28 Formating disk with ext4...
I >>> 47 Exec: mkfs.ext4 -F -b 512 /dev/mapper/boot-luks		
D [6103] > mkfs.ext4: invalid block size - 512

E > mkfs.ext4 -F -b 512 /dev/mapper/boot-luks - pid 6169 exit 1	
F > Running mkfs.ext4 -F -b 512 /dev/mapper/boot-luks

Add verbose mode

Is there any way to add verbosity?
In a system like gentoo things are slow and you might think that the script got stuck

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.