pycpio
1.4.1
用於在Python中創建CPIO文件的庫。
目前,庫僅支持新的ASCII格式和XZ壓縮
該庫的主要設計用於在UGRD中使用,以創建用於Initramfs的CPIO檔案。
-h, --help show this help message and exit
-d, --debug enable debug mode (level 10)
-dd, --trace enable trace debug mode (level 5)
-v, --version print the version and exit
--log-file LOG_FILE set the path to the log file
--log-level LOG_LEVEL
set the log level
--log-time enable log timestamps
--no-log-color disable log color
-i INPUT, --input INPUT
input file
-a APPEND, --append APPEND
append to archive
--recursive RECURSIVE
append to archive recursively
--relative RELATIVE append to archive relative to this path
--absolute allow absolute paths
--reproducible Set mtime to 0, start inodes at 0
--rm RM, --delete RM delete from archive
-n NAME, --name NAME Name/path override for append
-s SYMLINK, --symlink SYMLINK
create symlink
-c CHARDEV, --chardev CHARDEV
create character device
--major MAJOR major number for character/block device
--minor MINOR minor number for character/block device
-u UID, --set-owner UID
set UID on all files
-g GID, --set-group GID
set GID on all files
-m MODE, --set-mode MODE
set mode on all files
-z COMPRESS, --compress COMPRESS
compression type
-o OUTPUT, --output OUTPUT
output file
-l, --list list CPIO contents
-p, --print print CPIO contents
pycpio.header.cpioheader :代表CPIO標頭的類pycpio.header.headers中定義(僅支持新的ASCII格式)pycpio.cpio.data :代表CPIO數據塊的類file :常規文件或硬鏈接。dir :目錄symlink :符號鏈接chardev :角色設備pycpio.cpio.archive對像中