This repository was archived by the owner on Feb 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 435
Update README.md #384
Open
StanDMan2003
wants to merge
1
commit into
raspberrypi:master
Choose a base branch
from
StanDMan2003:patch-1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update README.md #384
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,7 +143,7 @@ The following steps allow you to create a modified copy of one of the standard O | |
|
||
3. Navigate to the `os` directory | ||
|
||
4. Create a copy of the folder containing the OS release that you want to modify and rename it with a custom name. | ||
4. Create a copy of the existing Raspbian folder, modifying the folder name to a custom OS name, based on your OS version. | ||
|
||
5. Edit the following fields in the `os.json` file contained in the folder that you just created | ||
1. "name" - replace the name of the base OS with the name of your custom OS version | ||
|
@@ -154,12 +154,19 @@ The following steps allow you to create a modified copy of one of the standard O | |
7. [Optional] Replace the PNG image files in the `slides` and `slides_vga` directory with your own custom installer slides | ||
|
||
8. Edit the following fields in the `partitions.json` file contained in the folder that you just created | ||
1. "partition_size_nominal" - replace the numerical value with the size of the paritions in your custom OS version | ||
2. "uncompressed_tarball_size" - replace the numerical value with the size of your filesystem tarballs when uncompressed | ||
|
||
9. Replace the `.tar.xz` root and boot filesystem tarballs with copies created from your custom OS version (these instructions assume you're only using a single OS at a time with NOOBS - they won't work if you're running multiple OSes from a single SD card). The name of these tarballs needs to match the labels given in `partitions.json`. | ||
1. To create the root tarball you will need to run `tar -cvpf <label>.tar /* --exclude=proc/* --exclude=sys/* --exclude=dev/pts/*` from within the root filesystem of your custom OS version. You should then compress the resulting tarball with `xz -9 -e <label>.tar`. | ||
2. To create the boot tarball you will need to run `tar -cvpf <label>.tar .` at the root directory of the boot partition of your custom OS version. You should then compress the resulting tarball with `xz -9 -e <label>.tar`. | ||
1. "partition_size_nominal" - replace the numerical value with the size of the paritions (round up) you want in your custom OS version. (Also note the size is in MB). | ||
2. "uncompressed_tarball_size" - replace the numerical value with the size of your filesystem tarballs (round up) when uncompressed (this can be obtained by running the command ll within the directory where the tarball is located). Also note the size is in MB. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The actual size should be in MiB (1024x1024 bytes) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @procount are you sure about that? I wise man (@lurch) once told me this:
|
||
|
||
9. Replace the `.tar.xz` root and boot filesystem tarballs with copies created from your custom OS version .img (these instructions assume you're only using a single OS at a time with NOOBS - they won't work if you're running multiple OSes from a single SD card). The name of these tarballs needs to match the labels given in `partitions.json`. | ||
1. Download the .img file for your custom OS. | ||
2. Determine the boot and root partition mount points and their sizes within the .img file by running `parted <Image_Filename>.img` (Commands inside parted: print quit). | ||
3. Mount the partitions within the .img by running `sudo kpartx -av <Image_Filename>.img` (if kpartx doesn't exist run: `sudo apt-get install kpartx` to install kpartx) | ||
4. Change directory to the newly mounted boot partition `cd /media/$USER/PI_BOOT` | ||
5. Create the boot tarball by running `tar -cvpf /tmp/<label>.tar *` at the root directory of the boot partition of your custom OS version img. Get the size of the extracted tar archive using `ll /tmp/`. Note the value in the partitions.json in the boot section for the uncompressed_tarball_size. (Also note the size in MB). You should then compress the resulting tarball with `xz -9 -e /tmp/<label>.tar`. | ||
6. Change directory to the newly mounted root partition `cd /media/$USER/PI_ROOT` | ||
7. To create the root tarball you will need to run `sudo tar -cvpf /tmp/<label>.tar /* --exclude=proc/* --exclude=sys/* --exclude=dev/pts/*` from within the root filesystem of your custom OS version img. Get the size of the extracted tar archive using `ll /tmp/`. Note the value in the partitions.json in the root section for the uncompressed_tarball_size. (Also note the size in MB). You should then compress the resulting tarball with `xz -9 -e /tmp/<label>.tar`. (Since this is a larger file it may fail, if so use `xz -4 -e /tmp/<label>.tar`). | ||
8. Umount the .img partitions by running `sudo kpartx -dv <Image_Filename>.img ` | ||
|
||
|
||
### How to change the default Language, Keyboard layout, Display mode or Boot Partition etc. | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The actual size should be in MiB (1024x1024 bytes)