Repositories (1)

Ninja-OS-Next-Generation
1 snippets stored for this repo
#parition that /boot is mounted on.
BOOTPART=$(mount |grep "/.livesys/medium type ext4" |cut -d " " -f 1)
# assume /boot is mounted on /dev/sda1. This bit of happy horse shit below is
# what you need to get /dev/sda from /dev/sda1 in bash. So how does that work?
# pay attention and you notice it uses fairly routine bash slicing
# ${varname:start:stop}. Except the stop uses bash math $(( )) to count the