Commit Graph

1871 Commits

Author SHA1 Message Date
tschettervictor
4e2d001f44 Suppress error if no jail 2025-10-02 13:20:06 -06:00
tschettervictor
afcbae89b7 list: fix listing jails with DHCP 2025-10-02 14:43:27 -04:00
Juan David Hurtado G
0a03d0f292 release: bump version to 1.1.0.251001 2025-10-01 11:53:28 -05:00
Juan David Hurtado G
efa453141f zfs: Add missing [TAG] text in the usage message 2025-10-01 11:50:01 -05:00
Juan David Hurtado G
93dd0ff053 common: fix typo 2025-10-01 06:50:51 -05:00
Juan David Hurtado G
3cef36f5ce common: fix typo 2025-10-01 06:49:07 -05:00
tschettervictor
bd120c68b6 Merge pull request #1253 from michael-o/version-sort
Apply version (natural) sort to listings
2025-09-30 12:17:44 -06:00
tschettervictor
b1c4c32ebd Merge pull request #1251 from BastilleBSD/tschettervictor-patch-1 2025-09-30 12:07:23 -06:00
Michael Osipov
d6f2a4985e Apply version (natural) sort to listings
When listing jails, releases, or alike sort them version-aware (natural)
where 10 comes not after 1, but after 9.
2025-09-30 20:02:07 +02:00
tschettervictor
b6014dacad fix listing linux jail 2025-09-30 07:57:17 -06:00
tschettervictor
27cf17b20a reword error message 2025-09-30 07:48:38 -06:00
tschettervictor
bdd08e0f4e list: support either FreeBSD OR Linux for release 2025-09-28 18:20:36 -06:00
tschettervictor
5769c9c6fe list: properly list jail type
@michael-o 

This is actually a better solution. It didn't cross my mind that we are actually setting IS_FREEBSD_JAIL and IS_LINUX_JAIL in the list command.

For now, if both are detected, it will set JAIL_TYPE to "hybrid" but if that is not agreeable, we can simply leave it at "thick".
2025-09-28 19:55:05 -04:00
tschettervictor
55a464544a typos 2025-09-28 13:10:26 -06:00
tschettervictor
838e10b319 init avoid epair name clash 2025-09-28 12:59:11 -06:00
tschettervictor
a85e7cc7a5 Fix unused error var 2025-09-28 11:25:35 -06:00
tschettervictor
8a6627841b restart: be consistent with service command 2025-09-28 11:19:45 -06:00
tschettervictor
16d5d05d73 restart: error if jail is not restarted 2025-09-27 12:34:47 -06:00
tschettervictor
365c96e708 Merge pull request #1246 from BastilleBSD/passthrough-create
Add -P to create command
2025-09-27 12:16:33 -06:00
tschettervictor
d6393d4572 update: fix updating an EOL jail 2025-09-26 09:25:35 -06:00
tschettervictor
3fa1e80632 fix passthrough in network subcommand 2025-09-25 12:27:09 -06:00
tschettervictor
5a8e46bd61 fix typo 2025-09-25 12:24:10 -06:00
tschettervictor
90d1b6ba32 continue add -P for create 2025-09-25 12:16:41 -06:00
tschettervictor
19c2d17cc1 fix some interface variables 2025-09-24 12:23:51 -06:00
tschettervictor
dada2df077 init support for -P on create 2025-09-24 08:13:30 -06:00
Michael Osipov
256f4d5114 Don't quote ${SH} (#1240)
When ${SH} is quoted one cannot replace the shell with another shell with
arguments, e.g., for debugging purposes: SH="sh -x" bastille ...
Don't quote, expect the shell path to never contain a space and be from /etc/shells.

This fixes #1240
2025-09-23 22:01:48 +02:00
tschettervictor
421f887d91 Fix comment for compression=on 2025-09-23 11:06:28 -06:00
Michael Osipov
82958fb7b7 Trim trailing whitespace 2025-09-23 18:51:04 +02:00
tschettervictor
22cc0ea11b Set compress to “on” for zfs compression 2025-09-23 10:00:50 -06:00
tschettervictor
1b30a035ab convert: fix newline 2025-09-19 14:20:03 -04:00
JRGTH
2ef6a6ebb0 Suppress unwanted errors, we use spaces for ident 2025-09-10 21:14:58 -04:00
tschettervictor
725c9f2ab8 Merge pull request #1228 from JRGTH/destroy_cmd_bugfix 2025-09-10 08:01:17 -04:00
JRGTH
03802ec48f Fix destroy single digit on major version releases
This will fix the regex to be able to destroy single digit on major version releases.

Problem:
Users can download single digit releases with archive repository address, however we can't destroy them later on.
2025-09-10 03:55:57 -04:00
pmarr
f98a2925cc Update rename.sh - Fix netgraph interface suffix
Resolves renaming netgraph jails. Previous behavior would "replace" the jng commands with the same old interface then fail to start the newly renamed jail with the following output.

```sh
Attempting to rename 'testjail' to jt...
Renamed 'testjail' to 'jt' successfully.

[jt]:
ng0_testjail
jt: created
ifconfig: interface ng0_jt does not exist
jail: jt: /sbin/ifconfig ng0_jt vnet jt: failed
jt: removed
```

The failure case above required manually creating the netgraph interface with `jng bridge <new ng int suffix> <interface>` and removing the old one `jng shutdown <old ng int suffix>`
2025-09-08 11:00:54 -05:00
tschettervictor
348f05f266 Move man to /usr/local/share 2025-09-07 16:41:32 -06:00
tschettervictor
6a180d00c1 cp: eliminate redundant “_option” 2025-09-07 17:37:27 -04:00
JRGTH
70ade04cce Properly copy resolv.conf file from host
Properly copy resolv.conf file from host to jail by following the symlink, and cleanup.

The resolv.conf file in some compact/embedded distributions is a symlink, hence some users complaint about jails has no internet access, this workaround does fix this problem.
2025-09-06 22:08:16 -04:00
tschettervictor
62f8f29f69 list: fix JAIL_TYPE on zfs 2025-09-04 08:55:43 -04:00
tschettervictor
6d6790bc08 Merge pull request #1218 from metalefty/man 2025-08-31 09:58:37 -04:00
Koichiro Iwao
4332df9e84 Update man page
- Add edit subcommand
- Remove bastille_list as it is no longer work with bastille 1.0
- Remove trailing whitespaces
- Update date
2025-08-27 21:58:25 +09:00
Koichiro Iwao
1c48ee6091 Decompress man page
Compressed man page is difficult to edit and also not suitable for
tracking in version control system. Compress during install instead.
2025-08-27 21:54:41 +09:00
tschettervictor
49bea0ba2f network: don't allow dots in interface name if -V 2025-08-25 14:58:25 -06:00
tschettervictor
89ea27a4e2 list: fix listing jail type on UFS 2025-08-17 07:45:56 -06:00
Doug MacNerland
902efe4fa9 wrap in double quotes 2025-08-09 10:25:24 -05:00
tschettervictor
b8367c6750 remove common.sh.save 2025-08-04 07:50:56 -06:00
tschettervictor
985286e74f rc: properly handle priority 2025-08-03 19:51:17 -06:00
tschettervictor
bebeed7654 rc: allow parallel mode for rc script 2025-08-03 14:13:14 -06:00
tschettervictor
a190099450 deprecate parallel mode 2025-08-03 13:32:59 -06:00
tschettervictor
fd89d7a09f create: exit if dataset creation failed 2025-07-30 16:38:23 -06:00
tschettervictor
8c17df773b network: fix default interface being removed on new interface add 2025-07-29 09:27:33 -06:00