mirror of
https://github.com/jbowdre/virtuallypotato.git
synced 2024-11-21 22:42:19 +00:00
clarify that the script assumes MBR
This commit is contained in:
parent
399c561129
commit
02d0daafdb
1 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,10 @@ It was a bit trickier for Linux systems though. My Linux templates all use LVM t
|
||||||
|
|
||||||
I found a great script [here](https://github.com/alpacacode/Homebrewn-Scripts/blob/master/linux-scripts/partresize.sh) that helped with most of those operations, but it required the user to specify the physical and logical volumes. I modified it to auto-detect those, and here's what I came up with:
|
I found a great script [here](https://github.com/alpacacode/Homebrewn-Scripts/blob/master/linux-scripts/partresize.sh) that helped with most of those operations, but it required the user to specify the physical and logical volumes. I modified it to auto-detect those, and here's what I came up with:
|
||||||
|
|
||||||
|
{{% notice info "MBR only" %}}
|
||||||
|
When I cobbled together this script I was primarily targeting the Enterprise Linux (RHEL, CentOS) systems that I work with in my environment, and those happened to have MBR partition tables. This script would need to be modified a bit to work with GPT partitions like you might find on Ubuntu.
|
||||||
|
{{% /notice %}}
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# This will attempt to automatically detect the LVM logical volume where / is mounted and then
|
# This will attempt to automatically detect the LVM logical volume where / is mounted and then
|
||||||
|
|
Loading…
Reference in a new issue