Skip to content

Instantly share code, notes, and snippets.

View dgdavid's full-sized avatar

David Díaz dgdavid

View GitHub Profile
@dgdavid
dgdavid / wireles_dialog_proposal
Created November 27, 2020 12:28
A proposal for the yast2-network wireless dialog
Network Card Setup
┌General──Wireless Specific──Address──Hardware─────────────────────────────┐
│ |
| Network ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ [Choose Network] |
| |
│┌Authentication──────────────────────────────────────────────────────────┐│
││ ||
|| Mode ▒WPA-PSK ("home")▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒↓ ││
││ Password ▒******▒ ││
││ ││

In the context of verifying https://trello.com/c/lh0QdXbP/2737-1-verify-behavior-with-ptablefs-in-the-same-disk (internal link) it was needed to create a virtual disk with a filesystem and an empty partition table on it. Thanks to @wfeldt, I manage to prepare it following below steps:

  • With an Ext4 filesystem

    # Create a 10GB virtual disk
    dd if=/dev/zero of=~/virtual-disk-1 bs=1M count=10240
    # Create an Ext4 filesystem on it
    mkfs.ext4 -F ~/virtual-disk-1

Add an empty msdos partition table (kudos to @wfeldt)