Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Virtualization:Appliances:Images:Testing_x86:tumbleweed
test-image-custom-partitions
_service:obs_scm:custom_partitions_create.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:custom_partitions_create.sh of Package test-image-custom-partitions
image_fs=$1 root_partnum=$2 root_device=/dev/loop*p${root_partnum} loop_name=$(basename $root_device | cut -f 1-2 -d'p') disk_device=/dev/${loop_name} sgdisk --delete=4 $disk_device || exit 1 # /var 100MB sgdisk --new=4:0:+100M $disk_device || exit 1 # /var/log 100MB sgdisk --new=6:0:+100M $disk_device || exit 1 # /var/audit rest of spare (500 - 200 = 300MB) sgdisk --new=7:0:0 $disk_device || exit 1 # reread partition changes partprobe $disk_device || exit 1 # recreate partition maps partx --delete $disk_device || exit 1 partx --add $disk_device || exit 1 # create filesystems on partitions, use labels mkfs.ext4 -L var /dev/${loop_name}p4 || exit 1 mkfs.ext4 -L log /dev/${loop_name}p6 || exit 1 mkfs.ext4 -L audit /dev/${loop_name}p7 || exit 1 # order partitions sgdisk --sort $disk_device
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor