Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“释放 Openwrt rootfs 压缩包 ... mkdir: 无法创建目录 “run”: 文件已存在”请大佬指点指点 #226

Open
lanyuchongshu opened this issue Nov 28, 2023 · 2 comments

Comments

@lanyuchongshu
Copy link

The work directory is : [/home/chan/opt/openwrt_packit/tmp]
The temporary directory is : [/home/chan/opt/openwrt_packit/tmp/tmp.dQNKVjJ8Yd]
The target boot directory is : [/home/chan/opt/openwrt_packit/tmp/tmp.dQNKVjJ8Yd/tgt_boot]
The target rootfs directory is : [/home/chan/opt/openwrt_packit/tmp/tmp.dQNKVjJ8Yd/tgt_root]
The output directory is : [/home/chan/opt/openwrt_packit/output/]

Use /home/chan/opt/openwrt_packit/openwrt-armvirt-64-default-rootfs.tar.gz as openwrt rootfs!
check mkfs.btrfs ok
check mkfs.vfat ok
check gawk ok
check uuidgen ok
check losetup ok
check lsblk ok
check fdisk ok
check parted ok

创建空白的目标镜像文件, 大小是 900 MB ...
记录了900+0 的读入
记录了900+0 的写出
943718400字节(944 MB,900 MiB)已复制,3.77782 s,250 MB/s
空白镜像创建成功
设置分区循环设备 ... 成功: [/dev/loop12]

对磁盘设备 [/dev/loop12] 进行分区 ...
创建新的分区表 ... 成功
创建第 [1] 个分区, 分区大小: [160] MB, 分区类型: [fat32] ... 成功
创建第 [2] 个分区, 分区大小: 所有剩余空间, 分区类型: [btrfs] ... 成功
[/dev/loop12] 磁盘分区一览:

Disk /dev/loop12:900 MiB,943718400 字节,1843200 个扇区
单元:扇区 / 1 * 512 = 512 字节
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
磁盘标签类型:dos
磁盘标识符:0x4f3f3e49

设备 启动 起点 末尾 扇区 大小 Id 类型
/dev/loop12p1 8192 335871 327680 160M c W95 FAT32 (LBA)
/dev/loop12p2 335872 1843199 1507328 736M 83 Linux

===================================================================
在 [/dev/loop12] 上创建文件系统 ...
The boot label is BOOT
格式化 [/dev/loop12p1], 类型为 [fat32], 卷标为 [BOOT] ...
mkfs.fat 4.1 (2017-01-24)
[/dev/loop12p1] 格式化成功
The rootfs uuid is a13b10fc-9907-4171-9982-ee9d1f2de400
The rootfs label is ROOTFS
格式化 [/dev/loop12p2], 类型为 [btrfs], 卷标为 [ROOTFS] ...
btrfs-progs v5.4.1
See http://btrfs.wiki.kernel.org for more information.

Label: ROOTFS
UUID: a13b10fc-9907-4171-9982-ee9d1f2de400
Node size: 16384
Sector size: 4096
Filesystem size: 736.00MiB
Block group profiles:
Data: single 8.00MiB
Metadata: single 8.00MiB
System: single 4.00MiB
SSD detected: no
Incompat features: extref, skinny-metadata
Checksum: crc32c
Number of devices: 1
Devices:
ID SIZE PATH
1 736.00MiB /dev/loop12p2

[/dev/loop12p2] 格式化成功
[/dev/loop12] 文件系统已创建.

挂载 /dev/loop12p1 --> /home/chan/opt/openwrt_packit/tmp/tmp.dQNKVjJ8Yd/tgt_boot ... 成功
挂载 /dev/loop12p2 --> /home/chan/opt/openwrt_packit/tmp/tmp.dQNKVjJ8Yd/tgt_root ... 成功
创建 /etc 子卷 ...
Create subvolume '/home/chan/opt/openwrt_packit/tmp/tmp.dQNKVjJ8Yd/tgt_root/etc'
释放 Openwrt rootfs 压缩包 ... mkdir: 无法创建目录 “run”: 文件已存在
失败!

@akercn
Copy link

akercn commented Dec 7, 2023

我用istoreos源码编译的也会发生这样的问题,但是用lede源码编译的固件合成就没有问题。

@leux0
Copy link

leux0 commented Feb 25, 2024

istoreos的话,你删除rootfs中那个run文件夹就可以正常打包了,但刷完启动后会出问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants