very early commit

This commit is contained in:
jonathan
2025-10-12 01:25:36 +02:00
parent 6a692cd666
commit e8b2a52571
2 changed files with 399 additions and 16 deletions

View File

@@ -1,23 +1,23 @@
#!/bin/xonsh --no-rc
# Nimux Early Mount (xonsh)
#mount /mnt
print("mount /mnt")
/bin/mount /mnt
# #mount /mnt
# print("mount /mnt")
# /bin/mount /mnt
# mount root on future accesable place
print("re-mount rootfs")
/bin/mkdir -p /mnt/rootfs
/bin/mount --bind / /mnt/rootfs
/bin/mount --make-rprivate /mnt/rootfs/
# # mount root on future accesable place
# print("re-mount rootfs")
# /bin/mkdir -p /mnt/rootfs
# /bin/mount --bind / /mnt/rootfs
# /bin/mount --make-rprivate /mnt/rootfs/
# import zpool
print("import zpool")
/sbin/zpool import nimux-zfs
# # import zpool
# print("import zpool")
# /sbin/zpool import nimux-zfs
# overlay etc and home with a persistant zfs dataset
print("overlay mount etc")
/bin/unionfs -o cow,nonempty /mnt/rootfs.overlay/etc=RW:/mnt/rootfs/etc=RO /etc
print("overlay mount home")
/bin/unionfs -o cow,nonempty /mnt/rootfs.overlay/home=RW:/mnt/rootfs/home=RO /home
# # overlay etc and home with a persistant zfs dataset
# print("overlay mount etc")
# /bin/unionfs -o cow,nonempty /mnt/rootfs.overlay/etc=RW:/mnt/rootfs/etc=RO /etc
# print("overlay mount home")
# /bin/unionfs -o cow,nonempty /mnt/rootfs.overlay/home=RW:/mnt/rootfs/home=RO /home