ygalblum / ansible-bash-bigboot Goto Github PK
View Code? Open in Web Editor NEWAnsible playbook that prepares the environment to run the extend boot partition script
License: Apache License 2.0
Ansible playbook that prepares the environment to run the extend boot partition script
License: Apache License 2.0
The current implementation assumes that the partition's path is always: /dev/<Device><Counter>
, e.g. for device /dev/vda
the partitions are /dev/vda1
, /dev/vda2
etc.
However, when in some cases, e.g. NVMe, this is not the case and an additional letter is used. So, for partition of disk /dev/nvme0n1
is /dev/nvme0n1p1
.
This root cause has several effects on the code.
In the Ansible role, should use:
- name: Identify the boot device parent
ansible.builtin.command: "lsblk -spnlo name {{ _boot_device.device }}"
changed_when: false
register: _boot_device_deps
- name: Capture boot device details
ansible.builtin.set_fact:
boot_device_name: "{{ _boot_device_deps.stdout_lines | last }}"
boot_device_original_size: "{{ _boot_device.size_total | int }}"
In the shrink.sh
script
ensure_extendable_fs_type "$DEVICE_NAME""$BOOT_PARTITION_NUMBER"
In addition the BOOT_PARTITION_FLAG
is not always set:
[root@steady-midge ~]# parted -m /dev/nvme0n1 print
BYT;
/dev/nvme0n1:32.2GB:nvme:512:512:msdos:NVMe Device:;
1:1049kB:500MB:499MB:ext4::;
2:500MB:32.2GB:31.7GB:::lvm;
Consider finding the boot partition based on fstab
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.