Skip to content

Commit 6f8d494

Browse files
authored
resources: Update documentation about extending disk image (#64)
1 parent 4a1ac06 commit 6f8d494

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ubuntu-generic-diskimages/BUILDING.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ provisioner "file" {
108108
}
109109
```
110110

111-
If you need to increase the size of the image when adding more libraries and files to the image update the size of the partition in the respective `http/*/user-data` file. Also, update the `disk_size` parameter in `post-installation.sh` to be at least one mega byte more than the size you defined in the `user-data` file.
111+
If you need to increase the size of the image when adding more libraries and files to the image update the size of the partition in the respective `http/*/user-data` file.
112+
Also, update the `disk_size` parameter in the respective packer script to be at least one mega byte more than the size you defined in the `user-data` file.
113+
Do note that the size in the `user-data` file is in bytes and the `disk-size` parameter in the packer files is in megabytes.
112114

113115
**NOTE:** You can extend this disk image by modifying the `post-installation.sh` script, but it requires building the image from scratch.
114116

0 commit comments

Comments
 (0)