Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
btrfs
Browse files Browse the repository at this point in the history
  • Loading branch information
paigeadelethompson committed Nov 8, 2023
1 parent 2311de2 commit 1d0291c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Create BOOT filesystem
run: sudo mkfs.vfat -F32 /dev/loop254p1
- name: Create SYSTEM filesystem
run: sudo mkfs.ext4 /dev/loop254p2
run: sudo mkfs.btrfs /dev/loop254p2
- name: Create HOME filesystem
run: sudo mkfs.exfat /dev/loop254p3
- name: Mount SYSTEM filesystem
Expand All @@ -57,17 +57,19 @@ jobs:
- name: Create docker image instance
run: docker create --name rpi-image surv:latest
- name: Docker export
run: cd /mnt ; sudo docker export rpi-image | sudo tar --exclude=etc/machine-id --exclude=home/* --exclude=home/ -xf -
run: cd /mnt ; sudo docker export rpi-image | sudo tar --exclude=etc/machine-id -xf -
- name: Home directories
run: mkdir /mnt/home/pi/ssh /mnt/home/pi/motion_cam /mnt/home/pi/motion_logs /mnt/home/pi/motion_video /mnt/home/pi/motion_cameras
run: sudo mkdir /mnt/home/pi/ssh /mnt/home/pi/motion_cam /mnt/home/pi/motion_logs /mnt/home/pi/motion_video /mnt/home/pi/motion_cameras
- name: authorized_keys empty file
run: sudo touch /mnt/home/pi/ssh/authorized_keys
- name: Create empty machine-id
run: sudo touch /mnt/etc/machine-id
- name: Copy hosts file
run: sudo cp hosts /mnt/etc
- name: Copy hostname file
run: sudo cp hostname /mnt/etc
- name: Unmount
run: sync && sync && sudo umount /mnt/boot && sudo umount /mnt/home/pi && sudo umount /mnt
run: sudo sync && sudo sync && sudo umount /mnt/boot && sudo umount /mnt/home/pi && sudo umount /mnt
- name: Disconnect installer.bin
run: sudo losetup -D /dev/loop254
- name: Move into directory
Expand Down
2 changes: 1 addition & 1 deletion cmdline.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dwc_otg.lpm_enable=0 console=ttyAMA1,115200n8 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait net.ifnames=0
dwc_otg.lpm_enable=0 console=ttyAMA1,115200n8 console=tty1 root=/dev/mmcblk0p2 rootfstype=btrfs elevator=deadline fsck.repair=yes rootwait net.ifnames=0
2 changes: 1 addition & 1 deletion fstab
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/dev/mmcblk0p1 /boot/ vfat defaults 0 0
/dev/mmcblk0p2 / ext4 defaults 0 0
/dev/mmcblk0p2 / btrfs defaults 0 0
/dev/mmcblk0p3 /home/pi exfat defaults,uid=4000,gid=5000,dmask=007,fmask=117 0 0

0 comments on commit 1d0291c

Please sign in to comment.