Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- echo Starting LibreSystems Estify GNU/Linux-libre Installer...
- # don't be alarmed, this blob is actually the ascii art, but compressed.
- base64 -d <<<"H4sIAGRe5lkAA61QQQ7DMAi75xXc2krV8qFI9CE8ftgkNJ069bCRaSXG2JBSRFQYOpIMRcx3uY+vvKtkEfPjseoWSUalxonZRz1x6N3x7NqSViAbhvNR8PPrqnEPjHV8kyHSt6EE0YlHQT/ZkVb4LCoN/+oLSWsgteBjQ3SxAN6BJNAx/pIIeUfAo0ONVvFQSLaxtbOB8u61BlexKHTOQOM9ZsTwIjZJcZsSRm7l5+UomtChgVfkO0nVsyh0aVJqF5iQ4O2UtNEBq8cYU/0az1Yx+j+sSnkDwNa+QFwDAAA=" | gunzip
- echo "Version 1.0 RTM"
- echo "--------------------------------------"
- DISK="/dev/sda"
- # step 1: Networking
- echo "Do you want to use ethernet or WiFi? (y/N): "
- read needsWiFi < /dev/tty
- if ( [ "$needsWiFi" == "y" ] ); then
- echo "Opening wifi-menu..."
- wifi-menu
- else
- echo "Ok, make sure a ethernet cable is connected."
- fi
- # step 2: HDD Cleaning
- echo "Do you want to securely wipe the Storage Device (This will take a long time. This is not needed on a new LibreSystem)? (y/N): "
- read needsWiFi < /dev/tty
- if ( [ "$needsWiFi" == "y" ] ); then
- echo "Starting Full Disk Wipe (filling with random bits). This will take a long time (few hours)..."
- # dd if=/dev/urandom of=/dev/sdX; sync
- else
- echo "Ok, make sure a ethernet cable is connected."
- fi
- # step 3: Formatting and preparing disk.
- echo "Loading device-mapper..."
- modprobe dm-mod
- echo "Setting up partition table..."
- parted /dev/sdx mklabel msdos
- echo "Creating partition..."
- mkpart part-type fs-type start end
- cryptsetup -v --cipher serpent-xts-plain64 --key-size 512 --hash whirlpool --iter-time 500 --use-random --verify-passphrase luksFormat /dev/sdXY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement